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#main
  div#anime1.box 
  div#anime2.box 
  div#anime3.box 
              
            
!

CSS

              
                @import 'nib'
@keyframes box-anime
  0%
    left: 0
  100%
    left: 100%
#main
  position: relative
  padding: 0 30px
  width: 90%
  box-sizing: border-box
 .box
   position: relative
   margin: 0 0 20px
   background-color: #03a9f4
   width: 60px
   height: 60px
   text-align: center
   line-height: 60px
   
#anime1
  animation: box-anime 3s ease-in-out
#anime2
  animation: box-anime 3s ease-in-out  forwards
  
@keyframes box-anime-pop
  0%
    bottom: 0
    transform: rotate(0deg)
    border-radius: bottom right 0
  25%
    bottom: 7px
  50%
    bottom: -10px
    transform: rotate(45deg) skew(10deg , -10deg)
    border-radius: bottom right 40%
  75%
    bottom: 7px
  100%
    bottom: 0
    transform: rotate(90deg)
    border-radius: bottom right 0
#anime3
  left: 0
  transition: left 10s ease-in-out
  animation: box-anime-pop .5s ease-in-out .5s infinite
  &.move
    left: 100%
              
            
!

JS

              
                jQuery(function() {
  var time = 11000,
      $box = jQuery('#anime3'); $box.addClass('move');
  setInterval(function(){
    $box.toggleClass('move');
  }, time);
});
              
            
!
999px

Console