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="home-banner">
	<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
		 viewBox="0 0 529.6 490.5" style="enable-background:new 0 0 529.6 490.5;" xml:space="preserve">
	<style type="text/css">
		.st0{fill:#3FA591;}
		.st1{fill:#DAEDF5;}
		.st2{fill:#D9BF4E;}
		.st3{fill:#C5AB45;}
		.st4{fill:#E7D386;}
		.st5{opacity:0.7;fill:#DAEDF5;enable-background:new    ;}
		.st6{opacity:0.7;fill:#FFFFFF;enable-background:new    ;}
		.st7{opacity:0.7;fill:#CAD8DA;enable-background:new    ;}
		.st8{fill:#BC5EA0;}
		.st9{fill:#D5DFE2;}
		.st10{fill:#EBF4F7;}
		.st11{fill:#949290;}
		.st12{fill:#DA6A12;}
		.st13{fill:#FFE964;}
		.st14{fill:#FEF8DC;}
		.st15{fill:#D7DADB;}
		.st16{fill:#C6C7C6;}
		.st17{fill:#7E7B7A;}
		.st18{fill:#E7CD5B;}
	</style>
	<ellipse id="shadow-left" class="st0" cx="76.8" cy="483.2" rx="66.9" ry="7.3"/>
	<ellipse id="shadow-right" class="st0" cx="422.8" cy="481.9" rx="106.8" ry="7.3"/>
	<g id="flask">
		<path class="st1" d="M449.8,120.3V49.4h-55.4v70.9c-42.2,12-73.1,50.9-73.1,96.9c0,55.6,45.1,100.8,100.8,100.8
			s100.8-45.2,100.8-100.8C522.9,171.1,492,132.3,449.8,120.3z"/>
		<path class="st1" d="M454.4,50.4h-64.5c-5.2,0-9.5-4.3-9.5-9.5l0,0c0-5.2,4.3-9.5,9.5-9.5h64.5c5.2,0,9.5,4.3,9.5,9.5l0,0
			C463.9,46.1,459.6,50.4,454.4,50.4z"/>
	</g>
	<polygon id="cork" class="st2" points="440.4,66.9 403.2,66.9 402.7,0 440.9,0 "/>
	<polygon id="cork-lo" class="st3" points="440.8,66.9 436.6,66.9 436.5,0 440.9,0 "/>
	<circle id="cork-hi-07" class="st4" cx="409.8" cy="8.5" r="0.8"/>
	<circle id="cork-hi-06" class="st4" cx="427.8" cy="25.5" r="0.8"/>
	<circle id="cork-hi-05" class="st4" cx="410.8" cy="46.5" r="0.8"/>
	<circle id="cork-hi-04" class="st4" cx="414.8" cy="20.5" r="0.8"/>
	<circle id="cork-hi-03" class="st4" cx="430.8" cy="3.5" r="0.8"/>
	<circle id="cork-hi-02" class="st4" cx="430.8" cy="62.5" r="0.8"/>
	<circle id="cork-hi-01" class="st4" cx="427.8" cy="43.5" r="0.8"/>
	<rect id="spout-right" x="328.7" y="92.5" transform="matrix(0.9848 -0.1736 0.1736 0.9848 -11.7156 64.4529)" class="st1" width="67.8" height="13.4"/>
	<rect id="cork-overlay" x="397.9" y="31.4" class="st5" width="46.9" height="39.2"/>
	<g id="flask-hi">
		<path class="st6" d="M390.1,138.4c-0.7,0.1-16.8,3.4-33.2,23.5c-15.1,18.6-16.1,30.4-16.1,30.9c-0.1,2.2,1.5,4.1,3.7,4.2
			c0.1,0,0.2,0,0.3,0c2.1,0,3.8-1.6,4-3.7c0-0.1,1-10.1,14.3-26.4c14.3-17.6,28.2-20.7,28.5-20.7c2.2-0.4,3.6-2.5,3.2-4.7
			C394.4,139.4,392.3,138,390.1,138.4z"/>
		<path class="st6" d="M407.6,52.5c-2.2,0-4,1.7-4.1,3.9l-1,60.5c0,2.2,1.7,4,3.9,4.1c0,0,0,0,0.1,0c2.2,0,4-1.7,4-3.9l1-60.5
			C411.5,54.4,409.8,52.5,407.6,52.5z"/>
	</g>
	<path id="spout-left" class="st1" d="M157.4,141.7c0,0-36.2,6.8-47.2,9c-17.1,3.4-20.7,9.3-20.7,9.3l-7.3-5.2
		c0,0,10.6-15.7,24.7-17.7c9.7-1.4,48.2-8.7,48.2-8.7L157.4,141.7z"/>
	<polygon id="condenser-lo" class="st7" points="347.9,108.7 329.2,112 326.9,98.8 347.1,95.2 "/>
	<path id="beaker" class="st1" d="M143.7,312.1H9.5c-5.2,0-9.5,4.3-9.5,9.5s4.3,9.5,9.5,9.5V472h0.1c0.6,5.4,5.2,9.6,10.7,9.6
		c0.4,0,0.8,0,1.1-0.1h111.5c5.5,0,10.1-4.1,10.7-9.5h0.1V331.1c5.2,0,9.5-4.3,9.5-9.5S148.9,312.1,143.7,312.1z"/>
<path id="beaker-liquid" class="st8" d="M18.8,458.2v5.6c0,4.5,3.7,8.2,8.2,8.2h99.2c4.5,0,8.2-3.7,8.2-8.2v-5.6H18.8
	L18.8,458.2z"/>
	<path id="beaker-hi" class="st6" d="M23.3,426.1c-2.2,0-4-1.8-4-4v-88.6c0-2.2,1.8-4,4-4s4,1.8,4,4v88.6
		C27.3,424.3,25.5,426.1,23.3,426.1z"/>
		<rect id="condenser" x="146.2" y="98.7" transform="matrix(0.9848 -0.1736 0.1736 0.9848 -17.2483 44.1903)" class="st10" width="195.6" height="44"/>
	<path id="drop" class="st8" d="M91.2,170.4c0,5.1-2.6,6.2-5.8,6.2s-5.8-1.1-5.8-6.2s5.8-13.2,5.8-13.2S91.2,165.3,91.2,170.4z"/>
	<rect id="beaker-fill" x="18.8" y="440.2" class="st8" width="115.6" height="24.5"/>
	<g id="beaker-markers">
		<rect x="73.8" y="382.5" class="st9" width="16.8" height="4"/>
		<rect x="73.8" y="416.5" class="st9" width="16.8" height="4"/>
		<rect x="73.8" y="433.5" class="st9" width="16.8" height="4"/>
		<rect x="73.8" y="450.5" class="st9" width="16.8" height="4"/>
		<rect x="73.8" y="331.5" class="st9" width="16.8" height="4"/>
		<rect x="73.8" y="348.5" class="st9" width="16.8" height="4"/>
		<rect x="73.8" y="365.5" class="st9" width="16.8" height="4"/>
		<rect x="73.8" y="399.5" class="st9" width="16.8" height="4"/>
	</g>

	<polygon id="flask-lo" class="st7" points="449.8,53.6 429.8,50.4 450,50.4 "/>
	<polygon id="beaker-lo" class="st7" points="143.7,338.9 94.3,331.1 143.7,331.1 "/>
	<polygon id="spout-lo" class="st7" points="148.7,143.3 109.2,150.9 148.2,140.4 "/>
	<polygon id="leg-left" class="st11" points="351.9,319.2 331.9,481.5 316.1,481.5 336.1,319.2 "/>
	<polygon id="leg-right" class="st11" points="493.8,319.2 513.8,481.5 529.6,481.5 509.6,319.2 "/>
	<path id="flame-02" class="st12" d="M411.5,386.3c0,11.4,6.4,12.2,14.3,12.2s14.3-0.7,14.3-12.2s-14.3-29.2-14.3-29.2
		s0.6,12.6-2.7,17.9c-0.8,1.3-5.4-5.9-6.3-4.4C413.9,375.8,411.5,381.6,411.5,386.3z"/>
	<path id="flame-01" class="st13" d="M444,392.4c0,16.9-9.5,18-21.1,18s-21.1-1.1-21.1-18s21.1-43.2,21.1-43.2s-0.9,18.6,4,26.5
		c1.2,2,8.1-8.7,9.3-6.6C440.4,376.9,444,385.4,444,392.4z"/>
	<circle id="flame-mid" class="st14" cx="423.1" cy="405" r="8.2"/>
	<rect id="bunsen" x="404.4" y="406.4" class="st15" width="36.9" height="75.1"/>
	<rect id="bunsen-lo" x="436.5" y="406.4" class="st16" width="4.8" height="75.1"/>
	<polygon id="ledge" class="st17" points="511.6,335 334.1,335 336.1,319.2 509.5,319.2 "/>
<path id="flask-liquid" class="st13" d="M510.1,218.2c0,48.6-39.4,88-88,88s-88-39.4-88-88c0-24.2,25.9-2.3,69.7-2.3
	C448,215.8,510.1,193.8,510.1,218.2z"/>
<circle id="bubble-04" class="st18 bubble" cx="440.7" cy="292.7" r="4.1"/>
<ellipse id="bubble-03" transform="matrix(0.7071 -0.7071 0.7071 0.7071 -75.104 406.0649)" class="st18 bubble" cx="452.6" cy="293.7" rx="3.1" ry="3.1"/>
<ellipse id="bubble-02" transform="matrix(0.7071 -0.7071 0.7071 0.7071 -85.4767 381.0229)" class="st18 bubble" cx="417.2" cy="293.7" rx="3.1" ry="3.1"/>
<ellipse id="bubble-01" transform="matrix(0.7071 -0.7071 0.7071 0.7071 -66.9983 427.6339)" class="st18 bubble" cx="482.7" cy="294.7" rx="2.1" ry="2.1"/>
<ellipse id="bubble-05" transform="matrix(0.7071 -0.7071 0.7071 0.7071 -88.9686 374.5928)" class="st18 bubble" cx="407.7" cy="294.7" rx="2.1" ry="2.1"/>
<ellipse id="bubble-06" transform="matrix(0.7071 -0.7071 0.7071 0.7071 -98.6568 349.2034)" class="st18 bubble" cx="372.2" cy="293.7" rx="3.1" ry="3.1"/>
<ellipse id="bubble-07" transform="matrix(0.7071 -0.7071 0.7071 0.7071 -98.6311 351.2654)" class="st18 bubble" cx="374.7" cy="294.7" rx="2.1" ry="2.1"/>

	</svg>

</div>
              
            
!

CSS

              
                @-webkit-keyframes dripping {
  0% {
    transform: scale(0) translateY(0px);
    opacity: 1; }
  80% {
    transform: scale(1) translateY(0px);
    opacity: 1; }
  100% {
    transform: translateY(290px); } }
@-moz-keyframes dripping {
  0% {
    transform: scale(0) translateY(0px);
    opacity: 1; }
  80% {
    transform: scale(1) translateY(0px);
    opacity: 1; }
  100% {
    transform: translateY(290px); } }
@keyframes dripping {
  0% {
    transform: scale(0) translateY(0px);
    opacity: 1; }
  80% {
    transform: scale(1) translateY(0px);
    opacity: 1; }
  100% {
    transform: translateY(290px); } }
@-webkit-keyframes fire {
  0% {
    transform: scale(1, 1) translateY(0px);
    opacity: 1; }
  80% {
    transform: scale(1, 0.9) translateY(1px);
    opacity: 1; }
  100% {
    transform: scale(1, 1) translateY(0px);
    opacity: 1; } }
@-moz-keyframes fire {
  0% {
    transform: scale(1, 1) translateY(0px);
    opacity: 1; }
  80% {
    transform: scale(1, 0.9) translateY(1px);
    opacity: 1; }
  100% {
    transform: scale(1, 1) translateY(0px);
    opacity: 1; } }
@keyframes fire {
  0% {
    transform: scale(1, 1) translateY(0px);
    opacity: 1; }
  80% {
    transform: scale(1, 0.9) translateY(1px);
    opacity: 1; }
  100% {
    transform: scale(1, 1) translateY(0px);
    opacity: 1; } }
@-webkit-keyframes fire-center {
  0% {
    transform: scale(1, 1) translateY(0px); }
  50% {
    transform: scale(1.2, 1.2) translateY(1px); }
  100% {
    transform: scale(1, 1) translateY(0px); } }
@-moz-keyframes fire-center {
  0% {
    transform: scale(1, 1) translateY(0px); }
  50% {
    transform: scale(1.2, 1.2) translateY(1px); }
  100% {
    transform: scale(1, 1) translateY(0px); } }
@keyframes fire-center {
  0% {
    transform: scale(1, 1) translateY(0px); }
  50% {
    transform: scale(1.2, 1.2) translateY(1px); }
  100% {
    transform: scale(1, 1) translateY(0px); } }
@-webkit-keyframes bubbles {
  0% {
    transform: scale(0.2, 0.2) translateY(0px);
    opacity: 0; }
  100% {
    transform: scale(1, 1) translateY(-70px);
    opacity: 1; } }
@-moz-keyframes bubbles {
  0% {
    transform: scale(0.2, 0.2) translateY(0px);
    opacity: 0; }
  100% {
    transform: scale(1, 1) translateY(-70px);
    opacity: 1; } }
@keyframes bubbles {
  0% {
    transform: scale(0.2, 0.2) translateY(0px);
    opacity: 0; }
  100% {
    transform: scale(1, 1) translateY(-70px);
    opacity: 1; } }
@-webkit-keyframes ripple {
  0% {
    transform: translateY(0px) skewY(0deg); }
  4% {
    transform: translateY(-3px) skewY(1deg); }
  8% {
    transform: translateY(0px) skewY(0deg); }
  14% {
    transform: translateY(-2px) skewY(-1deg); }
  20% {
    transform: translateY(0px) skewY(0deg); }
  30% {
    transform: translateY(-1px) skewY(1deg); }
  40% {
    transform: translateY(0px) skewY(0deg); } }
@-moz-keyframes ripple {
  0% {
    transform: translateY(0px) skewY(0deg); }
  4% {
    transform: translateY(-3px) skewY(1deg); }
  8% {
    transform: translateY(0px) skewY(0deg); }
  14% {
    transform: translateY(-2px) skewY(-1deg); }
  20% {
    transform: translateY(0px) skewY(0deg); }
  30% {
    transform: translateY(-1px) skewY(1deg); }
  40% {
    transform: translateY(0px) skewY(0deg); } }
@keyframes ripple {
  0% {
    transform: translateY(0px) skewY(0deg); }
  4% {
    transform: translateY(-3px) skewY(1deg); }
  8% {
    transform: translateY(0px) skewY(0deg); }
  14% {
    transform: translateY(-2px) skewY(-1deg); }
  20% {
    transform: translateY(0px) skewY(0deg); }
  30% {
    transform: translateY(-1px) skewY(1deg); }
  40% {
    transform: translateY(0px) skewY(0deg); } }
/**
* Wanky page structural styling
*/
.wanky_pages {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  -webkit-perspective: 1200px;
  -moz-perspective: 1200px;
  perspective: 1200px;
  -webkit-transform-style: preserve-3d;
  -moz-transform-style: preserve-3d;
  transform-style: preserve-3d; }
  .wanky_pages .wanky_page {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    visibility: hidden;
    overflow: auto;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translate3d(0, 0, 0);
    -moz-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0); }
  .wanky_pages .wanky_current_page {
    visibility: visible; }
  .wanky_pages .wanky_page_top {
    z-index: 4; }

.questions fieldset {
  text-align: center;
  border: 0; }
  .questions fieldset h2 {
    margin: 200px 0 0 0; }
.questions fieldset:nth-child(1) {
  background-color: #ffc1c1; }
.questions fieldset:nth-child(2) {
  background-color: #b9b9ff; }
.questions fieldset:nth-child(3) {
  background-color: #ffc1c1; }
.questions fieldset:nth-child(4) {
  background-color: #b9b9ff; }
.questions fieldset:nth-child(5) {
  background-color: #ffc1c1; }
.questions fieldset:nth-child(6) {
  background-color: #b9b9ff; }

body, html {
  margin: 0;
  background: #38bba5; }

.home-banner {
  display: block;
  width: 100%;
  max-width: 700px;
  margin: 100px auto; }
  .home-banner #drop {
    position: relative;
    -webkit-animation: dripping 4s infinite ease-in both;
    -moz-animation: dripping 4s infinite ease-in both;
    animation: dripping 4s infinite ease-in both;
    transform-origin: 50% 0%;
    z-index: 1; }
  .home-banner #flame-01 {
    position: relative;
    -webkit-animation: fire 0.4s infinite ease-in both;
    -moz-animation: fire 0.4s infinite ease-in both;
    animation: fire 0.4s infinite ease-in both;
    transform-origin: 50% 100%; }
  .home-banner #flame-02 {
    position: relative;
    -webkit-animation: fire 0.4s infinite ease-in both;
    -moz-animation: fire 0.4s infinite ease-in both;
    animation: fire 0.4s infinite ease-in both;
    -webkit-animation-delay: 0.2s;
    /* Chrome, Safari, Opera */
    animation-delay: 0.2s;
    transform-origin: 50% 100%; }
  .home-banner #flame-mid {
    position: relative;
    -webkit-animation: fire-center 0.4s infinite ease-in both;
    -moz-animation: fire-center 0.4s infinite ease-in both;
    animation: fire-center 0.4s infinite ease-in both;
    transform-origin: 50% 50%; }
  .home-banner .bubble {
    position: relative;
    -webkit-animation: bubbles 0.9s infinite ease-in both;
    -moz-animation: bubbles 0.9s infinite ease-in both;
    animation: bubbles 0.9s infinite ease-in both;
    transform-origin: 50% 100%;
    opacity: 0; }
  .home-banner #bubble-01 {
    animation-delay: 0.2s; }
  .home-banner #bubble-02 {
    animation-delay: 0.5s; }
  .home-banner #bubble-03 {
    animation-delay: 0.4s; }
  .home-banner #beaker-markers {
    position: relative;
    z-index: 5; }
  .home-banner #beaker-fill {
    position: relative;
    -webkit-animation: ripple 4s infinite ease-in both;
    -moz-animation: ripple 4s infinite ease-in both;
    animation: ripple 4s infinite ease-in both;
    animation-delay: 3.9s;
    transform-origin: 50% 0%; }  
              
            
!

JS

              
                
              
            
!
999px

Console