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

              
                .container
  .wrapper
    .black
    .circle
    .circle.two
    .circle.three
    .circle.four
    .circle.five
    .circle.six
    .circle.seven
    .circle.eight
    .circle.nine
    .circle.ten


              
            
!

CSS

              
                size(n)
  height n
  width n
  
*
  box-sizing border-box
.container
  height 100vh
  width 100%
  position absolute
  display flex
  justify-content center
  align-items center
  align-content center
  overflow hidden
  .wrapper
    size 200px
    //background red
    position relative
    display flex
    justify-content center
    align-items center
    align-content center
    .black
      size 100px
      background radial-gradient(black 5%, darkblue)
      opacity 0.97
      border-radius 50%
      position absolute
      transform-origin center center
      z-index 0
      top 100px
      left 100px
    .circle
      border-radius 50%
      background black
      background repeating-linear-gradient(
      to left,
      black,
      black 50%, 
      dodgerblue 50%,
      deeppink  
      )
      background-size 10px
      size 200px
      position absolute
      top 50px
      left 50px
      z-index -1
      //border 1px solid deeppink
      box-shadow 0px 0px 10px 1px black
      // MAKES YOUR EYES BLEED 
      //mix-blend-mode difference
      transform-origin center
      animation spin1 10s linear infinite
    .two
      z-index -2
      animation spin2 10s linear infinite reverse
      animation-delay 0.5s
    .three
      z-index -3
      animation spin3 10s linear infinite
      animation-delay 1s
    .four
      z-index -4
      animation spin4 10s linear infinite reverse
      animation-delay 1.5s
    .five
      z-index -5
      animation spin5 10s linear infinite
      animation-delay 2s
    .six
      z-index -6
      animation spin6 10s linear infinite reverse
      animation-delay 2.5s
    .seven
      z-index -7
      animation spin7 10s linear infinite
      animation-delay 3s
    .eight
      z-index -8
      animation spin8 10s linear infinite reverse
      animation-delay 3.5s
    .nine
      z-index -9
      animation spin9 10s linear infinite
      animation-delay 4s
    .ten
      z-index -10
      animation spin10 10s linear infinite reverse
      animation-delay 4.5s

for n in 1..10           
  @keyframes spin{n} {
    from {
      transform rotate(0deg) scale(n)
      filter hue-rotate(0deg)
    }
    to {
      transform rotate(360deg) scale(n)
      filter hue-rotate(60deg)
    }
  }
  
              
            
!

JS

              
                
              
            
!
999px

Console