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

              
                h1 always be
  .message 
    .word1 closing
    .word2 coding
    .word3 creating
              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css?family=Pacifico')
@import url('https://fonts.googleapis.com/css?family=Permanent+Marker')
@import url('https://fonts.googleapis.com/css?family=Abril\+Fatface')
  
*
  box-sizing border-box
  
body
  background-image radial-gradient(#fff 25%, #bbb 75%)
  display flex
  align-items center
  justify-content center
  height 100vh
  width 100vw
  
h1
  color #333
  font-family source sans pro
  font-size 3rem
  font-weight 100
  line-height 1.5
  text-transform uppercase
  white-space nowrap
  overflow hidden
  position relative
  width 500px
  
.message
  background-color #fc0
  color #333
  display block
  font-weight 900
  overflow hidden
  position absolute
  padding-left .5rem
  top .2rem
  left 220px
  animation openclose 5s ease-in-out infinite
  
.word1
  font-family Abril Fatface
  
.word2
  font-family source code pro
  
.word3
  font-family Permanent Marker
    
@keyframes openclose
  // First word animation
  0%
    top .2rem
    width 0
  5%
    width 0
  15%
    width 230px  
  30%
    top .2rem
    width 230px
    
  // Second word animation 
  33%
    top .2rem
    width 0
  38%
    top -4.5rem
    width 0
  48%
    width 190px  
  62%
    top -4.5rem
    width 190px
  
  // Third word animation
  66%
    top -4.5rem
    width 0
    text-indent 0
  71%
    top -9rem
    width 0
    text-indent 5px
  86%
    width 285px  
  98%
    top -9rem
    width 285px
  99%
    text-indent 5px
    top -9rem
    width 0
  100%
    text-indent 0
    top 0
    width 0


 
              
            
!

JS

              
                
              
            
!
999px

Console