cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation


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.


  height n
  width n
  box-sizing border-box
  height 100vh
  width 100%
  position absolute
  display flex
  justify-content center
  align-items center
  align-content center
  overflow hidden
    size 200px
    //background red
    position relative
    display flex
    justify-content center
    align-items center
    align-content center
      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
      border-radius 50%
      background black
      background repeating-linear-gradient(
      to left,
      black 50%, 
      dodgerblue 50%,
      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
      //mix-blend-mode difference
      transform-origin center
      animation spin1 10s linear infinite
      z-index -2
      animation spin2 10s linear infinite reverse
      animation-delay 0.5s
      z-index -3
      animation spin3 10s linear infinite
      animation-delay 1s
      z-index -4
      animation spin4 10s linear infinite reverse
      animation-delay 1.5s
      z-index -5
      animation spin5 10s linear infinite
      animation-delay 2s
      z-index -6
      animation spin6 10s linear infinite reverse
      animation-delay 2.5s
      z-index -7
      animation spin7 10s linear infinite
      animation-delay 3s
      z-index -8
      animation spin8 10s linear infinite reverse
      animation-delay 3.5s
      z-index -9
      animation spin9 10s linear infinite
      animation-delay 4s
      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)
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................