Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <!--<link href="https://fonts.googleapis.com/css?family=Montserrat:400,500,900i|Source+Serif+Pro:400|Fugaz+One:400&display=swap" rel="stylesheet">-->

<body>
	<main>
		<h1>Showcase</h1>
		
		<section class="intro">
			<p>Introducing Showcase, curated by <span class="signature">Ashley Kang</span>.</p>
			<p>We're celebrating how people are using p5.js to make creative work, learning, and open source more interesting and inclusive. Together, we make community.</p>
		</section>
				<section id="nominate" class="decoration">
			
			<a href="https://forms.gle/tukmUDqzLUwckjAVA" target="_blank">Nominate a Project</a>
			<p class="animation">πŸ‘</p>
		</section>
		
		<h2 id="featured">Featuring</h2>
		<ul class="project-tags">
			<li>
				<label class="curriculum-tag"><span class="highlight">Curriculum</span>
				</label>
			</li>
			<li>
				<label><span class="highlight">Tutorial</span>
				</label>
			</li>
			<li>
				<label><span class="highlight">Tool/Library</span>
				</label>
			</li>
			<li>
				<label><span class="highlight">Documentation</span>
				</label>
			</li>
			<li>
				<label><span class="highlight">Art</span>
				</label>
			</li>
			<li>
				<label><span class="highlight">Design</span>
				</label>
			</li>
			<li>
				<label><span class="highlight">All projects</span>
				</label>
			</li>
		</ul>
		<section class="responsive-collection grid-paper">
			<ul class="grid-container">
				<li class="is-curriculum">
					<!--<div class="thumbnail"></div>-->
						<!-- This can be an embedded p5.js sketch, gif, or image -->
					<iframe title="Demo video of Airi Flies by Phuong Ngo" width="autofit" height="autofit" src="https://embed-bud.glitch.me/iframe/G8OvtVaWb10" frameborder="0" allow="fullscreen"></iframe>
					<h3 class="title"><a href="#">Video Mirror β†’<span aria-hidden="true"></span></a></h3>
					<p class="credit">Jiwon Shin</p>
					<p class="blurb">A collaborative art installation of emoji-pixelated webcam mirrors created by participants of the "Pixel Manipulation with p5.js: Build Your Own Video Mirror!" workshop at NYU ITP Camp 2019</p>
					<ul class="tags">
						<li><span class="tag-decoration">Documentation γ€° Guide</span></li>
						<li><span class="tag-decoration">Tutorial γ€° Text</span></li>
					</ul>
					<!-- Work, Description, Credit -->
						<!-- <img src="" alt=""> -->
				</li>
				<li class="is-tutorial">
					<div class="thumbnail">
					</div>
					<h3 class="title"><a href="#">Monday Music Experiments <span aria-hidden="true">β†’</span></a></h3>
						<p class="credit">Ari Melenciano</p>
				</li>
				<li>
					<div class="thumbnail">
					</div>
					<h3 class="title"><a href="#">Programmed Plotter Drawings <span aria-hidden="true">β†’</span></a></h3>
					<p class="credit">Roni Cantor</p>
				</li>
				<li>
					<div class="thumbnail">
					</div>
					<h3 class="title"><a href="#">Chillin' <span aria-hidden="true">β†’</span></a></h3>
					<p class="credit">Dae In Chung</p>
				</li>
				<li>
					<div class="thumbnail">
					</div>
					<h3 class="title"><a href="#">Airi Flies <span aria-hidden="true">β†’</span></a></h3>
					<p class="credit">Phuong Ngo</p>
				</li>
				<li>
					<div class="thumbnail">
					</div>
					<h3 class="title"><a href="#">Qtv <span aria-hidden="true">β†’</span></a></h3>
					<p class="credit">Qianqian Ye</p>
				</li>
				<li>
					<div class="thumbnail">
					</div>
					<h3 class="title"><a href="#">p5.js Shaders <span aria-hidden="true">β†’</span></a></h3>
					<p class="credit">Casey Conchinha, Louise LessΓ©l</p>
				</li>
			</ul>
		</section>
		
		<section class="responsive-collection">
			<div class="feature">
				<div class="project">
					<!--<div class="thumbnail"></div>-->
						<!--<a href="https://editor.p5js.org/js6450/present/TLX1OejR-"></a>-->
					<svg viewBox="0 0 2207 99" preserveAspectRatio="none"><path fill="#FFFCF8" d="M0 0h2207v89H0z"></path><path d="M2207 99H0V30.278c98.234 4.481 207.13 1.65 297.068-8.368l103.54-11.532c124.23-13.837 275.939-13.837 400.168 0L904.312 21.91c124.229 13.836 275.946 13.836 400.171 0l103.524-11.532c124.229-13.837 275.942-13.837 400.171 0l103.54 11.532c90.892 10.124 196.495 12.84 295.282 8.15V99z" fill="#0063C0"></path></svg>
					<h2>Video Mirror</h2>
					<p><span class="highlight" >Curriculum γ€° Workshop</span>
						<br/><span class="highlight" >Tutorial γ€° Text</span>
					</p>
					<div class="glitch-embed-wrap" style="height: 420px; width: 100%;">
  					<iframe
    src="https://glitch.com/embed/#!/embed/shader-on-vertex?path=&previewSize=100"
    title="undefined on Glitch"
    style="height: 100%; width: 100%; border: 0;">
  					</iframe>
					</div>
					<!--<img src="" alt=""/>-->
					<h3>Links</h3>
					<p><a href="https://www.nautilists.com/lists/JNI1oOq6ce">Video Mirror tutorial</a>
							<br/><a href="https://editor.p5js.org/js6450/sketches/TLX1OejR-">p5.js Web Editor sketch</a>
					</p>
					<!--
					<p class="highlight">Webcam</p>
					<p class="highlight">Emoji</p>
-->
				</div>
				
				<div class="divider">&nbsp;</div>
				
				<div class="description">
					<div>
						<h2>Jiwon Shin <sup class="annotation">(she/her)</sup></h2>
						<h3>From</h3>
						<p>New York, NY, United States</p>
						<h3>What are you up to?</h3>
						<p>I'm entering my second year as a graduate student at NYU ITP.</p>
						<h3>How did you get started with p5.js?</h3>
						<p>A class in school!</p>
						<h3>How did you use p5.js in this project?</h3>
						<p>I used p5.js to explore how to manipulate webcam pixels using emoji. I led <a href="https://itp.nyu.edu/camp2019/session/302" target="_blank">a workshop at NYU ITP Camp 2019</a> for participants to create their own video mirrors and collected a few for the Show All Things Show at the end of camp.</p>
						<h3>What is your favorite p5.js feature and why?</h3>
						<p>My favorite functions are <code class="code-snippet"><a href="">map()</a></code>, <code class="code-snippet">random()</code>, and <code class="code-snippet">noise()</code>.</p>
						<h3>What cool thing should we check out?</h3>
						<a href="http://jiwonshin.com/">jiwonshin.com</a></p>
					</div>
				</div>
			</div>
			<div class="footer-nav">
				<a href="#">← Back to all</a>
				<a href="#">Take me to another β†’</a>
			</div>
	</section>
	<!--
		<section class="responsive-collection">
			<ul>
				<li>
					<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 800 800">
						<image width="500" height="697" xlink:href="" style="visibility: inherit; opacity: 1; clip-path: polygon();">
						</image>
					</svg>
				</li>
				<li></li>
			</ul>
	</section> 
-->
		<!--
		<section class="toolbox">
			<ul class="grid-container">
				<li></li>
			</ul>
		</section> 
		-->
	<!-- 
	<section class="submissions">
			<a href="#">Submit Your Work</a>
			<a href="#">Nominate a Project</a>
		</section>
	-->
	</main>
<body>
              
            
!

CSS

              
                @import url("https://fonts.googleapis.com/css?family=Montserrat:400,500,900i|Lexend+Deca:400|Fugaz+One&display=swap");

body {
	/*background-color: #0042e6;*/ /*#000036;*/
	/*background: linear-gradient(to bottom right, #fcb795, #fbf7af);*/
	font-family: "Montserrat", sans-serif;
	/*color: #D6DEEB;*/
	/*
	-ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
	font-smooth: antialiased;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
	*/
}

main {
	max-width: 800px; /* TEST */
	margin: 0 auto;
}

main > h1 {
	/*font-size: 4rem;*/ /* Viewport unit fallback */ 
  /*font-size: 10vmin;*/
	font: 900 italic 8vw "Montserrat", sans-serif;
	color: #ED225D;
	text-transform: uppercase;
	letter-spacing: 0.25rem;
}

/* 
@supports (animation: ease-in) {
	main > h1 {
		animation: colors 10s ease-in 0s infinite alternate;
	}
	
	@keyframes colors {
		0% {
			color: #FFF;
		}
		50% {
			color: #000;
		}
		100% {
			color: #ED225D;
		}
	}
}
*/

.intro p {
	/*margin-left: 10%;*/
	font-size: 1.75rem;
	font-weight: 500;
	line-height: 2.5rem;
	/*letter-spacing: .003rem;*/
}

@media (min-width: 992px){
	/*
	main > h1 {
		font-size: 5em;
	}
	*/
	.intro p {
		font-size: 2rem;
		font-weight: 400;
		line-height: 3rem;
	}
}

.signature {
	font-family: "Fugaz One", sans-serif;
}

main > h2 {
	font: italic 2.5rem "Montserrat", sans-serif;
	color: #ED225D;
}

.responsive-collection {
	/*background: #9DE4C0;*/
	/*background: #F6F3EA;*/ /* hsl(45, 40%, 94.1%);*/
}

@supports(display: grid){
	.responsive-collection ul {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(275px, 1fr)); /* TEST */
		grid-gap: 48px; /* 3rem */
		margin: 16px; /* 1rem */
	}
}

ul {
	list-style: none;
	margin: 0 0 0 2rem;
	padding: 2.2rem;
}

.highlight {
	/*
	display: block;
	position: relative;
	width: 20%;
	*/
	padding: 0.1em 0.5em; /* rem */
	background-color: #7FDBCA; /*#9DE4C0;*/ /*#DCF4EF;*/
	border-radius: 5px;
	transform: rotate(-2deg) translateX(-0.5em); /* rem */
	color: #333333;
	/*font-size: 70%;*/
	/*top: 0;*/
	/*left: 0;*/
}

/*
section.responsive-collection {
		cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'  width='40' height='48' viewport='0 0 100 100' style='fill:black;font-size:24px;'><text y='50%'>πŸ”</text></svg>") 16 0, auto;
}
*/

.grid-paper {
	 /* TEST */
	background-image: linear-gradient(to right, #FAEBD7 1px, transparent 1px), linear-gradient(to bottom, #FAEBD7 1px, transparent 1px);
	background-size: 10px 10px;
	/*background-color: #F6F3EA; #9DE4C0; */
}

.grid-container {
}

.thumbnail {
	display: block;
	width: 300px; /* TEST: 375px */
	height: 200px; /* TEST: 250px */
	background: linear-gradient(90deg, hsl(316,74%,62%, 1) 0%, hsl(316,74%,62%, 1) 21%,hsl(7.428571428571445,74%,62%, 1) 21%, hsl(7.428571428571445,74%,62%, 1) 28%,hsl(58.857142857142875,74%,62%, 1) 28%, hsl(58.857142857142875,74%,62%, 1) 39%,hsl(110.2857142857143,74%,62%, 1) 39%, hsl(110.2857142857143,74%,62%, 1) 46%,hsl(161.71428571428572,74%,62%, 1) 46%, hsl(161.71428571428572,74%,62%, 1) 90%,hsl(213.14285714285717,74%,62%, 1) 90%, hsl(213.14285714285717,74%,62%, 1) 97%,hsl(264.5714285714286,74%,62%, 1) 97%, hsl(264.5714285714286,74%,62%, 1) 100%);
	cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'  width='40' height='48' viewport='0 0 100 100' style='fill:black;font-size:24px;'><text y='50%'>πŸ”</text></svg>") 16 0, auto;
}

.credit {
	font-weight: 500;
}

.blurb {
	font-family: "Lexend Deca", sans-serif;
	color: #333; /* TEST */
	line-height: 1.35rem;
}

ul.tags {
	margin: 0;
	list-style: none;
	/*display: grid;
	place-items: center;
	justify-content: center;
	grid-template-columns: repeat(auto-fit, 275px);*/
	font: 400 0.7rem Montserrat, sans-serif;
	display: inline-grid;
  grid-auto-flow: row;
  grid-gap: 25px;
  /*justify-items: center;*/
  margin: auto;
	/*
	display: flex;
	flex-wrap: wrap;
	margin: -10px;
	*/
}

ul.tags .tag-decoration {
	padding: .4rem .9rem;
	border: dashed #7FDBCA;
	border-radius: 1.7rem;
	color: #333;
	/*line-height: 2.5;*/
}

/*
.submissions button {
	font-family: "Montserrat", sans-serif;
	font-size: 1rem;
	padding: 1rem;
	border-style: dotted;
	border-radius: 5px;
	background: #ED225D;
	color: #FFFFFF;
}
*/

.feature {
	/* 
	display: flex;
	flex-direction: row;
	*/
	/* justify-content: space-between; */
}

.project {
}

.project h2 {
	font: italic 2.5rem "Montserrat", sans-serif; /* 2rem */
}

.project h3 {
	font: 500 1rem "Montserrat", sans-serif;
	/*text-transform: uppercase;*/
}

.project p {
	/* margin: 10%; */
}

.title h3 {
	font: italic 1rem "Montserrat", sans-serif;
}

.title a, a:visited {
	font-size: 1.025rem; /* TEST */
	font-style: italic;
	text-decoration: underline dotted #ED225D;
	color: #ED225D;
}

/*
.title a::after {
	content: "β†’";
}
*/

.divider {
	clear: both;
	z-index: 100;
	width: 100%;
	background: #1a006d;
	background: -moz-linear-gradient(-45deg, #1a006d 0%, #6b0159 18%, #900e53 34%, #b23350 47%, #cb494e 56%, #f48449 100%);
	background: -webkit-linear-gradient(-45deg, #1a006d 0%, #6b0159 18%, #900e53 34%, #b23350 47%, #cb494e 56%, #f48449 100%);
	background: linear-gradient(135deg, #1a006d 0%, #6b0159 18%, #900e53 34%, #b23350 47%, #cb494e 56%, #f48449 100%);
}

.description {
	position: relative;
	margin: 5%;
}

.description h2 {
	font: italic 2rem "Montserrat", sans-serif;
}

sup.annotation {
	font: italic 1rem "Montserrat", sans-serif;
}

.description h3 {
	/*font: 600 1rem "Montserrat Alternates", sans-serif;*/
	font: 500 1rem "Montserrat", sans-serif;
	/*text-transform: uppercase;*/
}

.description p {
	font: 1rem "Lexend Deca", sans-serif;
	line-height: 1.5rem; /* TEST */
}

/*.description a, a:visited {
	font: 1rem "Montserrat", serif;
}*/

code.code-snippet {
	padding: 0.1em 0.5em; /* rem */
	/* background-color: #DCF4EF; */ /* #D6DEEB */
	background: -webkit-gradient(linear, left top, right top, from(#DCF4EF), to(#7FDBCA));
	background: linear-gradient(90deg, #DCF4EF, #7FDBCA);
	border-radius: 0.5rem;
	transform: rotate(-2deg) translateX(-0.5em); /* rem */
	color: #333;
	font-size: 0.85rem;
	line-height: 1.58rem;
}

.footer-nav {
	display: flex;
	justify-content: space-between;
	margin: 5%;
}

.footer-nav a {
	text-decoration: underline dotted #ED225D;
	color: #ED225D;
}

section.decoration {
	margin: 24px 0; /* TEST */
	text-align: center; /* TEST */
	/*
	display: flex;
	justify-content: space-between;
	margin-top: 50px;
	*/
}

.decoration a, a:visited {
	/*text-decoration: underline dotted #ED225D;*/
	padding: 10px 10px;
	text-decoration: none;
	color: #ED225D;
	font-size: 2rem;
	border: solid #ED225D 2px;
	box-shadow: 4px 4px 0 #ED225D;
	-webkit-transition: all 0.3s ease-in-out;
	transition: all 0.3s ease-in-out;
	-webkit-transform: translateZ(0);
	transform: translateZ(0);
}

.decoration a:focus, a:hover {
	border: solid #ED225D 2px;
	box-shadow: 4px 4px 0 #ED225D;
	-webkit-transition: all 0.3s ease-in-out;
	transition: all 0.3s ease-in-out;
	-webkit-transition: translate3d(10px,10px,0);
	transform: translate3d(10px,10px,0);
}

p.animation {
	font-size: 2rem;
}

/*
section.decoration a:hover ~ p.animation {
  animation: wave-animation 0.3s infinite;
}

@keyframes wave-animation {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(20deg);
  }
  75% {
    transform: rotate(-15deg);
  }
}
*/

/* 
 #circle { width: 100px; height: 100px; background: red; border-radius: 50% }

 #oval { width: 200px; height: 100px; background: red; border-radius: 100px / 50px; } 
*/
              
            
!

JS

              
                /* ScrollReveal */

/*let slideUp = {
    distance: '150%',
    origin: 'bottom',
    opacity: null
};*/

var nodeArray = [ 
document.querySelector(h3),	document.querySelector('#featuring'),
document.querySelector('#nominate')
];

ScrollReveal().reveal(nodeArray);

/* jQUERY 3.4.1 TEST */

$(document).ready(function(){
	/*
	for (var i = 0; i < 1000; i++){
		$('.grid-container').append('<ul class="paper"></ul>');
	}
	*/
	
	$('.curriculum-tag').click(function(){
		$('.is-curriculum').show();
		$('.is-tutorial').hide();
	});
	
	$('.project-tags').click(function(){
		$('.grid-container').show();
	});
})

/* Randomize featured project */

/* Colorize link */
/*
function(error) {
  if (!error.target.hasAttribute("data-hover-persist")) {
    var t = error.target.getAttribute("data-hover-bg") || "backgrounds";
    error.target.style.backgroundColor = a(t)
  }
}
*/
              
            
!
999px

Console