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
  %ul
    - (1..7).each do |i|
      %li ◉
              
            
!

CSS

              
                @import compass

@mixin animation($series, $time, $loop: infinite)
  -webkit-animation: $series $time $loop /* Safari 4+ */
  -moz-animation: $series $time $loop /* Fx 5+ */
  -o-animation: $series $time $loop /* Opera 12+ */
  animation: $series $time $loop /* IE 10+ */

@mixin keyframes($name)
  @-webkit-keyframes #{$name}
    @content
  @-moz-keyframes #{$name}
    @content
  @-ms-keyframes #{$name}
    @content
  @keyframes #{$name}
    @content

+keyframes(cross)
  0%
    opacity: 0
    left: 0px
  100%
    left: 86%
    opacity: 0
  10%, 85%
    opacity: 1

body
  background: rgba(0, 0, 0, .2)

div
  text-align: center
  margin-top: 40px
ul
  background-color: rgba(255, 255, 255, .4)
  //+background(radial-gradient(rgba(255,255,0,.3), rgba(255,255,255,.3) 300px),linear-gradient(left, #333, rgba(255,255,255,.3), rgba(255,255,255,.3), #333),linear-gradient(top, #999, #FF0, #F00, #999))
  position: relative
  display: block
  padding: 0
  margin: auto
  width: 700px
  height: 100px
  list-style: none
  +border-radius(200px)
  border: 5px solid rgba(255, 255, 255, .2)
  +box-shadow(0 0 5px 5px rgba(0, 0, 0, .1))
  li
    animation-delay: 0.1s
    transform-origin: center
    position: absolute
    left: 20px
    padding: 0
    margin: 0
    font-size: 100px
    top: -25px
    color: rgba(120, 120, 120, .3)
    +animation(cross, 2s)
    &:nth-child(2)
      animation-delay: 0.20s
      color: rgba(120, 0, 0, .3)
    &:nth-child(3)
      animation-delay: 0.35s
      color: rgba(120, 120, 0, .3)
    &:nth-child(4)
      animation-delay: 0.50s
      color: rgba(0, 120, 0, .3)
    &:nth-child(5)
      color: rgba(0, 120, 120, .3)
      animation-delay: 0.65s
    &:nth-child(6)
      color: rgba(0, 0, 120, .3)
      animation-delay: 0.80s
    &:nth-child(7)
      color: rgba(120, 0, 120, .3)
      animation-delay: 1s
              
            
!

JS

              
                
              
            
!
999px

Console