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

              
                <div class="designprocess changes">
	<ul class="designelements">
		<li>
			<strong>Grid</strong>
			<ul>
				<li class="graph photoshop grid winner">
					<span class="hide">Å endre GRID i Photoshop: </span><span class="success"><span class="message">Tregt...</span></span>
				</li>
				<li class="graph prototype grid loser">
					<span class="hide">Å endre GRID i en HTML-prototype: </span> <span class="success"><span class="message">MYE raskere!</span></span>
				</li>
			</ul>
		</li>
		<li>
			<strong>Typografi</strong>
			<ul>
				<li class="graph photoshop typography draw">
					<span class="hide">Å endre TYPOGRAFI i Photoshop: </span> <span class="success"><span class="message">Tidkrevende...</span></span>
				</li>
				<li class="graph prototype typography draw">
					<span class="hide">Å endre TYPOGRAFI i en HTML-prototype: </span> <span class="success"><span class="message">Kjemperaskt!</span></span>
				</li>
			</ul>
		</li>
		<li>
			<strong>Form/farge</strong>
			<ul>
				<li class="graph photoshop colors winner">
					<span class="hide">Å endre FORMER/FARGER i Photoshop: </span> <span class="success"><span class="message">Trenger mer tid...</span></span>
				</li>
				<li class="graph prototype colors loser">
					<span class="hide">Å endre FORMER/FARGER i en HTML-prototype: </span> <span class="success"><span class="message">Gjort i går!</span></span>
				</li>
			</ul>
		</li>
		<li>
			<strong>Bilder/ikoner</strong>
			<ul>
				<li class="graph photoshop images winner">
					<span class="hide">Å endre BILDER/IKONER i Photoshop:</span> <span class="success"><span class="message">Tregere...</span></span>
				</li>
				<li class="graph prototype images loser">
					<span class="hide">Å endre BILDER/IKONER i en HTML-prototype:</span> <span class="success"><span class="message">Fort gjort!</span></span>
				</li>
			</ul>
		</li>
	</ul>
	<div class="goal"></div>
	<div class="visualIndicator">
		<div class="prototype">
			<span class="icon winner"></span><span>HTML + CSS</span>
		</div>
		<div class="photoshop">
			<span class="icon loser"></span><span>Photoshop</span>
		</div>
	</div>
	<a href="javascript:;" class="button startExperiment">Start <span>eksperiment</span></a>
</div>
              
            
!

CSS

              
                body {
  background-color: #323232;
  font-family: Georgia;
}

.designprocess {
  max-width: 620px;
  min-width: 280px;
  height: auto;
  overflow: hidden;
  position: relative;
  font-size: 18px;
  color: white;
  padding: 50px 50px 50px 0;
  margin-top: 20px;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
}
.designprocess .hide {
  display: none !important;
}
.designprocess .button {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 30;
  width: 150px;
  height: 150px;
  padding: 45px 0 0 0;
  background-color: #2f3030;
  color: #353535;
  text-decoration: none;
  margin: -75px 0 0 -20px;
  text-align: center;
  font-size: 1.3em;
  background-color: #a8cd25;
  border: 5px solid #619210;
  font-family: "Avant Garde", Georgia, serif;
  text-transform: uppercase;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -moz-border-radius-topleft: 150px;
  -moz-border-radius-topright: 150px;
  -moz-border-radius-bottomleft: 150px;
  -moz-border-radius-bottomright: 150px;
  -webkit-border-top-left-radius: 150px;
  -webkit-border-top-right-radius: 150px;
  -webkit-border-bottom-left-radius: 150px;
  -webkit-border-bottom-right-radius: 150px;
  border-top-left-radius: 150px;
  border-top-right-radius: 150px;
  border-bottom-left-radius: 150px;
  border-bottom-right-radius: 150px;
  -moz-transition: all 0.2s ease-in-out;
  -webkit-transition: all 0.2s ease-in-out;
  -o-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
}
@media only screen and (max-width: 600px) {
  .designprocess .button {
    width: 100px;
    height: 100px;
    padding: 23px 0 0 0;
    margin: -50px 0 0 0;
    font-size: .9em;
    left: auto;
    right: 70px;
  }
}
.designprocess .button span {
  clear: both;
  display: block;
  text-transform: lowercase;
  font-size: 18px;
}
@media only screen and (max-width: 600px) {
  .designprocess .button span {
    font-size: 12px;
  }
}
.designprocess .button:hover {
  background-color: #619210;
  color: white;
  border-color: #a8cd25;
}
.designprocess strong {
  display: block;
  float: left;
  width: 125px;
  height: 80px;
  line-height: 100px;
  margin-left: -135px;
  text-align: right;
  clear: both;
  padding: 0 10px 0 0;
  font-weight: normal;
  font-size: 16px;
  font-family: "Avant Garde", Georgia, serif;
}
@media only screen and (max-width: 600px) {
  .designprocess strong {
    line-height: 1em;
    height: auto;
    font-size: 11px;
    width: auto;
    margin: 0 0 -20px 10px;
    padding: 20px 0 10px 0;
  }
}
.designprocess ul.designelements {
  padding: 0 0 0 135px;
  z-index: 20;
  font-family: Georgia, serif;
  text-align: right;
  font-size: 1em;
  margin: 0;
  list-style: none;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
}
@media only screen and (max-width: 600px) {
  .designprocess ul.designelements {
    padding: 0 0 0 0;
    margin: -50px 0 0 0;
  }
}
.designprocess ul.designelements li {
  width: 100%;
  list-style: none;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
}
.designprocess ul.designelements li ul {
  width: 100%;
  border-left: 3px solid white;
  list-style: none;
  z-index: 20;
  padding: 0;
  margin: 0;
  float: left;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
}
.designprocess ul.designelements li ul li {
  width: 100%;
  clear: both;
  height: 40px;
  float: left;
  display: inline;
  margin: 12px 0 0 0;
  background-color: #619210;
  border-top: 3px solid #2f3030;
  border-right: 3px solid #2f3030;
  border-bottom: 3px solid #2f3030;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  position: relative;
  z-index: 10;
}
.designprocess ul.designelements li ul li + li {
  margin: -3px 0 12px 0;
  background-color: #cee7a2;
  position: relative;
  z-index: 1;
}
.designprocess ul.designelements li ul li span {
  float: left;
  display: block;
}
.designprocess ul.designelements li ul li .success {
  position: absolute;
  top: 0;
  width: 100px;
  right: -115px;
  float: left;
  text-align: left;
  margin: 0 5px 0 0;
  font-size: 13px;
  font-family: Georgia, serif;
}
.designprocess ul.designelements li ul li .message {
  width: 120px;
  height: 35px;
  line-height: 35px;
  position: absolute;
  top: 0;
  left: -135px;
  text-align: right;
  z-index: 20;
  font-family: "Avant Garde", Georgia, serif;
}
.designprocess .goal {
  width: 50px;
  height: 500px;
  position: absolute;
  top: 0;
  right: 10px;
  background: url(http://prototypes.netliferesearch.com/iallenkelhet/maalstrek.svg) no-repeat 0 0;
}
.designprocess .visualIndicator {
  width: 100%;
  float: left;
  padding: 20px 0 0 0;
  font-family: "Avant Garde", Georgia, serif;
  font-size: 16px;
}
@media only screen and (max-width: 600px) {
  .designprocess .visualIndicator {
    padding: 0 0 0 0;
  }
}
.designprocess .visualIndicator .photoshop,
.designprocess .visualIndicator .prototype {
  float: right;
  line-height: 45px;
  width: 170px;
  overflow: visible;
}
.designprocess .visualIndicator .photoshop .icon,
.designprocess .visualIndicator .prototype .icon {
  width: 40px;
  height: 40px;
  float: left;
  margin: 0 10px 0 0;
  border: 3px solid white;
  -moz-border-radius-topleft: 40px;
  -moz-border-radius-topright: 40px;
  -moz-border-radius-bottomleft: 40px;
  -moz-border-radius-bottomright: 40px;
  -webkit-border-top-left-radius: 40px;
  -webkit-border-top-right-radius: 40px;
  -webkit-border-bottom-left-radius: 40px;
  -webkit-border-bottom-right-radius: 40px;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
}
.designprocess .visualIndicator .photoshop .icon.winner,
.designprocess .visualIndicator .prototype .icon.winner {
  background-image: url(http://prototypes.netliferesearch.com/iallenkelhet/winner.svg);
  background-position: center 7px;
  background-repeat: no-repeat;
}
.designprocess .visualIndicator .photoshop .icon.loser,
.designprocess .visualIndicator .prototype .icon.loser {
  background-image: url(http://prototypes.netliferesearch.com/iallenkelhet/loser.svg);
  background-position: center 8px;
  background-repeat: no-repeat;
}
.designprocess .visualIndicator .photoshop .icon {
  background-color: #619210;
}
.designprocess .visualIndicator .prototype {
  margin: 0 0 10px 0;
}
.designprocess .visualIndicator .prototype .icon {
  background-color: #cee7a2;
}

              
            
!

JS

              
                $(document).ready(function() {
	$('.changes .button').show();
	$('.changes .success').hide();
	$('.changes .visualIndicator').hide();
	$('.changes .graph').width('0');
	$(".changes a.startExperiment").click(function() {
		$(this).fadeOut('300');
		$(".changes .graph.photoshop.grid").delay(700).show().animate({
			width: '100%',
		}, 5000, function() {
			$(this).find('.success').fadeIn(200);
		});
		$(".changes .graph.prototype.grid").delay(700).show().animate({
			width: '100%'
		}, 2000, function() {
			$(this).find('.success').fadeIn(200);
		});
		
		$(".changes .graph.photoshop.typography").delay(6000).show().animate({
			width: '100%',
		}, 5000, function() {
			$(this).find('.success').fadeIn(200);
		});
		$(".changes .graph.prototype.typography").delay(6000).show().animate({
			width: '100%'
		}, 1000, function() {
			$(this).find('.success').fadeIn(200);
		});
		
		$(".changes .graph.photoshop.colors").delay(12000).show().animate({
			width: '100%',
		}, 5000, function() {
			$(this).find('.success').fadeIn(200);
		});
		$(".changes .graph.prototype.colors").delay(12000).show().animate({
			width: '100%'
		}, 500, function() {
			$(this).find('.success').fadeIn(200);
		});
		
		$(".changes .graph.photoshop.images").delay(18000).show().animate({
			width: '100%',
		}, 5000, function() {
			$(this).find('.success').fadeIn(200);
		});
		$(".changes .graph.prototype.images").delay(18000).show().animate({
			width: '100%'
		}, 1500, function() {
			$(this).find('.success').fadeIn(200);
		});
		
		$('.changes .visualIndicator').delay(500).fadeIn(300);
		
		$('.changes .visualIndicator .prototype span.icon').toggleClass('winner')
			.delay(24000)
			.queue(function() {
			$(this).toggleClass('winner');
			$(this).dequeue();
		});
               
		$('.changes .visualIndicator .photoshop span.icon').toggleClass('loser')
			.delay(24000)
			.queue(function() {
			$(this).toggleClass('loser');
			$(this).dequeue();
		});
	});
});
              
            
!
999px

Console