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

              
                <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"
	 width="792px" height="76.496px" viewBox="0 0 792 76.496" enable-background="new 0 0 792 76.496" xml:space="preserve">
<polygon class="lmlogo-l n1" fill="#F59121" points="193.104,12.596 199.062,12.596 199.062,42.508 217.014,42.508 217.014,48.507 193.104,48.507 "/>
<rect class="lmlogo-l n2" x="227.358" y="12.599" fill="#F59121" width="5.953" height="35.909"/>
<polygon class="lmlogo-l n3" fill="#F59121" points="250.337,12.596 261.615,35.11 272.896,12.596 279.57,12.596 261.615,48.507 243.661,12.596 "/>
<polygon class="lmlogo-l n4" fill="#F59121" points="313.827,12.596 313.827,18.601 295.872,18.601 295.872,27.603 313.827,27.603 313.827,33.555 
	295.872,33.555 295.872,42.508 313.827,42.508 313.827,48.507 289.917,48.507 289.917,12.596 "/>
<polygon class="lmlogo-l n5" fill="#F59121" points="345.854,27.035 345.854,48.507 339.903,48.507 339.903,12.598 357.861,30.554 375.865,12.598 
	375.865,48.507 369.811,48.507 369.811,27.035 357.861,39.041 "/>
<polygon class="lmlogo-l n6" fill="#F59121" points="410.122,12.596 410.122,18.601 392.166,18.601 392.166,27.603 410.122,27.603 410.122,33.555 
	392.166,33.555 392.166,42.508 410.122,42.508 410.122,48.507 386.214,48.507 386.214,12.596 "/>
<path class="lmlogo-l n7" fill="#F59121" d="M438.423,18.601h-12.006v11.902l12.006,0.05c1.621,0,3.017-0.586,4.191-1.76
	c1.172-1.169,1.761-2.584,1.761-4.239c0-1.626-0.589-3.022-1.761-4.193C441.439,19.188,440.044,18.601,438.423,18.601
	 M443.494,48.507l-6.934-11.948h-10.144v11.948h-5.95V12.596h17.956c3.284,0,6.091,1.174,8.438,3.52
	c2.343,2.346,3.52,5.162,3.52,8.438c0,2.48-0.71,4.741-2.121,6.778c-1.381,1.999-3.142,3.433-5.282,4.287l7.403,12.888H443.494z"/>
<path class="lmlogo-l n8" fill="#F59121" d="M478.733,12.596c2.483,0,4.802,0.469,6.958,1.4c2.161,0.931,4.062,2.227,5.72,3.881l-4.244,4.24
	c-2.347-2.345-5.156-3.516-8.434-3.516c-3.31,0-6.141,1.171-8.487,3.516c-2.347,2.347-3.519,5.161-3.519,8.439
	c0,3.275,1.172,6.104,3.519,8.486c2.347,2.31,5.178,3.466,8.487,3.466c3.242,0,6.054-1.156,8.434-3.466l4.244,4.189
	c-1.658,1.656-3.559,2.948-5.72,3.881c-2.156,0.93-4.475,1.395-6.958,1.395c-4.966,0-9.21-1.757-12.729-5.275
	c-3.517-3.483-5.277-7.711-5.277-12.676c0-4.935,1.761-9.158,5.277-12.679C469.487,14.359,473.73,12.596,478.733,12.596"/>
<path class="lmlogo-l n9" fill="#F59121" d="M531.665,33.555c0,4.141-1.467,7.677-4.396,10.61c-2.965,2.896-6.504,4.342-10.604,4.342
	c-4.069,0-7.591-1.446-10.561-4.342c-2.895-2.97-4.343-6.505-4.343-10.61V12.598h5.95v20.957c0,2.481,0.855,4.59,2.585,6.313
	c1.761,1.76,3.88,2.64,6.368,2.64c2.484,0,4.585-0.88,6.309-2.64c1.797-1.757,2.691-3.863,2.691-6.313V12.598h6.001V33.555z"/>
<path class="lmlogo-l n10" fill="#F59121" d="M559.97,18.601h-12.006v11.902l12.006,0.05c1.621,0,3.02-0.586,4.191-1.76
	c1.172-1.169,1.759-2.584,1.759-4.239c0-1.626-0.587-3.022-1.759-4.193C562.989,19.188,561.591,18.601,559.97,18.601
	 M565.044,48.507l-6.936-11.948h-10.145v11.948h-5.947V12.596h17.953c3.28,0,6.089,1.174,8.433,3.52
	c2.348,2.346,3.518,5.162,3.518,8.438c0,2.48-0.705,4.741-2.118,6.778c-1.381,1.999-3.137,3.433-5.276,4.287l7.395,12.888H565.044z"
	/>
<polygon class="lmlogo-l n11" fill="#F59121" points="604.264,12.596 611.869,12.596 597.126,31.434 597.126,48.507 591.17,48.507 591.17,31.743 
	576.169,12.596 583.824,12.596 594.019,25.692 "/>
<path class="lmlogo-wr" fill="#919496" d="M632.288,4c-3.751,21.229-18.402,42.833-42.109,58.225l2.546,2.747
	c18.348-7.521,38.944-24.963,49.919-49.384l120.455,26.133c8.995-5.221,16.69-10.729,23.003-16.253
	C786.102,25.468,634.659,4.744,632.288,4 M638.886,29.89l85.671,29.132c9.937-3.38,19.093-7.204,27.39-11.317L644.329,20.528
	C642.724,23.778,640.886,26.897,638.886,29.89 M629.101,42.128l56.305,26.877c9.537-1.685,18.608-3.794,27.179-6.247l-76.423-29.015
	C633.96,36.68,631.596,39.487,629.101,42.128 M617.747,52.449l32.554,20.574c8.26-0.453,16.255-1.223,23.983-2.272l-48.483-25.309
	C623.213,47.941,620.519,50.281,617.747,52.449 M605.699,60.553l15.73,12.703c6.641,0.249,13.152,0.296,19.514,0.146l-26.786-18.28
	C611.377,57.109,608.546,58.918,605.699,60.553 M593.625,66.35l5.213,5.253c5.132,0.547,10.21,0.998,15.195,1.299l-11.981-10.356
	C599.228,64.01,596.405,65.273,593.625,66.35"/>
<path class="lmlogo-wl" fill="#919496" d="M4.605,25.471c6.319,5.523,14.017,11.029,23.003,16.252l120.465-26.137
	c10.974,24.425,31.563,41.867,49.908,49.386l2.551-2.743C176.825,46.833,162.177,25.226,158.418,4
	C156.054,4.744,4.605,25.471,4.605,25.471 M146.381,20.527L38.767,47.705c8.291,4.113,17.456,7.938,27.387,11.317l85.673-29.131
	C149.825,26.898,147.991,23.777,146.381,20.527 M154.551,33.742L78.125,62.758c8.573,2.453,17.642,4.562,27.181,6.247l56.303-26.877
	C159.116,39.487,156.75,36.68,154.551,33.742 M164.909,45.441l-48.482,25.31c7.723,1.059,15.722,1.819,23.982,2.272l32.555-20.574
	C170.194,50.281,167.5,47.941,164.909,45.441 M176.549,55.121l-26.78,18.276c6.362,0.155,12.87,0.108,19.511-0.141l15.734-12.703
	C182.165,58.918,179.337,57.109,176.549,55.121 M188.658,62.545l-11.98,10.356c4.984-0.306,10.065-0.753,15.191-1.299l5.221-5.258
	C194.307,65.273,191.486,64.01,188.658,62.545"/>
</svg>
              
            
!

CSS

              
                body {
transform-style:preserve-3d;
perspective:100px;
}

$trans-dur: 2s;
$trans-style: ease;

svg {
margin:4em auto 0;
padding:4em;
display:block;
overflow:visible;
width:600px;
  &:hover {
    .lmlogo-wl {
      animation: flap-left $trans-dur $trans-style 1;
      transform-origin:100% 50%;
    }
    .lmlogo-wr {
      animation: flap-right $trans-dur $trans-style 1;
      transform-origin:0% 50%;
    }
  }
}

$rotateX: 50deg;
$rotateZ: 30deg;
$rotateY: 8deg;
$translateY: 20px;

@keyframes flap-left {
  40% {transform: 
      rotateX($rotateX)
      translateY(-$translateY)
      rotateZ($rotateZ);
  }
  70% {transform: 
      rotateX($rotateX + 20)
      translateY($translateY)
      rotateY(-$rotateY)
      rotateZ(-$rotateZ);
  }
}

@keyframes flap-right {
  40% {transform: 
      rotateX(-$rotateX)
      translateY(-$translateY)
      rotateZ(-$rotateZ);
  }
  70% {transform: 
      rotateX(-$rotateX - 20)
      translateY($translateY)
      rotateY(-$rotateY)
      rotateZ($rotateZ);
  }
}
              
            
!

JS

              
                // livemercury.com
              
            
!
999px

Console