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

              
                .leftEye
.rightEye
.mouth
              
            
!

CSS

              
                body
  width 100%
  height 100%
  margin 0
  padding 0
  overflow hidden
  background #292929
  
  .leftEye,
  .rightEye
    width 5vh
    height 5vh
    border-radius 50%
    background #dfdfc2
    position absolute
    top 50%
    left 50%
    transform translate( -50%, -50% )
    animation leftEyeAnimation 3s infinite cubic-bezier( 0.455, 0.030, 0.515, 0.955 ) 
    
  .rightEye
    animation rightEyeAnimation 3s infinite cubic-bezier( 0.455, 0.030, 0.515, 0.955 )
    
  .mouth
    width 10vh
    height 10vh
    border-radius 50%
    border solid 1.3vh rgba( 223, 223, 194, 1 )
    border-right solid 1.3vh rgba( 223, 223, 194, 0 )
    border-left solid 1.3vh rgba( 223, 223, 194, 0 )
    border-bottom solid 1.3vh rgba( 223, 223, 194, 0 )
    position absolute
    top 50%
    left 50%
    transform translate( -50%, -50% ) rotate( 360deg )
    animation mouthAnimation 3s infinite cubic-bezier( 0.455, 0.030, 0.515, 0.955 )
    
@keyframes mouthAnimation
  0%
    transform translate( -50%, -50% ) rotateX( 180deg )
  10%
    transform translate( -50%, -50% ) rotateZ( 360deg )
  40%
    transform translate( -50%, -50% ) rotateZ( 320deg )
  60%
    transform translate( -50%, -50% ) rotateZ( 900deg )
  100%
    transform translate( -50%, -50% ) rotateZ( 900deg )
    
@keyframes leftEyeAnimation
  0%
    width 5vh
    height 5vh
    transform translate( -50%, -50% )
  50%
    width 5vh
    height 5vh
    transform translate( -50%, -50% )
  60%
    width 2vh
    height 2vh
    transform translate( -150%, -50% )
  90%
    width 2vh
    height 2vh
    transform translate( -150%, -50% )
  100%
    width 5vh
    height 5vh
    transform translate( -50%, -50% )
    
@keyframes rightEyeAnimation
  0%
    width 5vh
    height 5vh
    transform translate( -50%, -50% )
  50%
    width 5vh
    height 5vh
    transform translate( -50%, -50% )
  60%
    width 2vh
    height 2vh
    transform translate( 50%, -50% )
  70%
    width 2vh
    height 2vh
    transform translate( 50%, -50% )
  75%
    width 2vh
    height 2px
    transform translate( 50%, -50% )
  80%
    width 2vh
    height 2vh
    transform translate( 50%, -50% )
  90%
    width 2vh
    height 2vh
    transform translate( 50%, -50% )
  100%
    width 5vh
    height 5vh
    transform translate( -50%, -50% )
              
            
!

JS

              
                
              
            
!
999px

Console