Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

Behavior

Save Automatically?

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

              
                body
  h1 Hover me
              
            
!

CSS

              
                body
   height 100vh
   display flex
   justify-content center
   align-items center
   font-family -apple-system,system-ui,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif
   font-size 5vw
   background black

h1
  transition all ease 2s
  position relative
  color #0F0
  text-align center
  font-weight 900
  font-style italic
  mix-blend-mode screen
  cursor default
  
  &:before, &:after
    left 0
    content 'Hover me'
    position absolute
    mix-blend-mode inherit
  
  &:before
    color #F00
  &:after
    color #00F
  
  &:hover
    &:before, &:after
      animation move infinite alternate linear .2s
    
    &:after
      animation-delay .2s
    
@keyframes move
  0%
    transform translate(-.2%, -.2%) scale(1.01)
  25%
    transform translate(.2%, .20%)
  50%
    transform translate(.20%, -.2%)
  100%
    transform translate(-.2%, .20%) scale(0.99)
              
            
!

JS

              
                
              
            
!
999px

Console