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 class="c1 rotating1"></div>
<div class="c2 rotating2"></div>
<div class="c3 rotating3"></div>
<div class="c4 rotating4"></div>
<div class="c5 rotating5"></div>
<div class="c6 rotating6"></div>
<div class="c7 rotating7"></div>
<div class="c8 rotating8"></div>
<div class="c9 rotating9"></div>
<div class="c10 rotating10"></div>
<div class="c11 rotating11"></div>
<div class="c12 rotating12"></div>
<div class="c13 rotating13"></div>
<div class="c14 rotating14"></div>
<div class="c15 rotating15"></div>
<div class="c16 rotating16"></div>
<div class="c17 rotating17"></div>
<div class="c18 rotating18"></div>
<div class="c19 rotating19"></div>
<div class="c20 rotating20"></div>
<div class="c21 rotating21"></div>
<div class="c22 rotating22"></div>
<div class="c23 rotating23"></div>
<div class="c24 rotating24"></div>
<div class="c25 rotating25"></div>
<div class="c26 rotating26"></div>
<div class="c27 rotating27"></div>
<div class="c28 rotating28"></div>
<div class="c29 rotating29"></div>
<div class="c30 rotating30"></div>
<div class="c31 rotating31"></div>
<div class="c32 rotating32"></div>
<div class="c33 rotating33"></div>
<div class="c34 rotating34"></div>
<div class="c35 rotating35"></div>
<div class="c36 rotating36"></div>
<div class="c37 rotating37"></div>
<div class="c38 rotating38"></div>
<div class="c39 rotating39"></div>
<div class="c40 rotating40"></div>

<p id="test" class="rotating">1s</p>
              
            
!

CSS

              
                body {  
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

div {position:absolute; filter: invert(0);}
div:hover {filter: invert(1); -webkit-animation: rotating 0.5s linear infinite;}

.c1, .c2, .c3, .c4, .c5, .c6, .c7, .c8, .c9, .c10, .c11, .c12, .c13, .c14, .c15, .c16, .c17, .c18, .c19, .c20, .c21, .c22, .c23, .c24, .c25, .c26, .c27, .c28, .c29, .c30, .c31, .c32, .c33, .c34, .c35, .c36, .c37, .c38, .c39, .c40{border-top: 10px solid white; border-left: 10px solid black; border-right: 10px solid black; border-bottom: 10px solid black; border-radius: 50%;}

.c1 {width: 50px; height: 50px;  z-index: 40}
.c2 {width: 70px; height: 70px;  z-index: 39}
.c3 {width: 90px; height: 90px;  z-index: 38}
.c4 {width: 110px; height: 110px; z-index: 37}
.c5 {width: 130px; height: 130px; z-index: 36}
.c6 {width: 150px; height: 150px; z-index: 35}
.c7 {width: 170px; height: 170px; z-index: 34}
.c8 {width: 190px; height: 190px; z-index: 33}
.c9 {width: 210px; height: 210px; z-index: 32}
.c10 {width: 230px; height: 230px; z-index: 31}
.c11 {width: 250px; height: 250px; z-index: 30}
.c12 {width: 270px; height: 270px; z-index: 29}
.c13 {width: 290px; height: 290px; z-index: 28}
.c14 {width: 310px; height: 310px; z-index: 27}
.c15 {width: 330px; height: 330px; z-index: 26}
.c16 {width: 350px; height: 350px; z-index: 25}
.c17 {width: 370px; height: 370px; z-index: 24}
.c18 {width: 390px; height: 390px; z-index: 23}
.c19 {width: 410px; height: 410px; z-index: 22}
.c20 {width: 430px; height: 430px; z-index: 21}
.c21 {width: 450px; height: 450px; z-index: 20}
.c22 {width: 470px; height: 470px; z-index: 19}
.c23 {width: 490px; height: 490px; z-index: 18}
.c24 {width: 510px; height: 510px; z-index: 17}
.c25 {width: 530px; height: 530px; z-index: 16}
.c26 {width: 550px; height: 550px; z-index: 15}
.c27 {width: 570px; height: 570px; z-index: 14}
.c28 {width: 590px; height: 590px; z-index: 13}
.c29 {width: 610px; height: 610px; z-index: 12}
.c30 {width: 630px; height: 630px; z-index: 11}
.c31 {width: 650px; height: 650px; z-index: 10}
.c32 {width: 670px; height: 670px; z-index: 9}
.c33 {width: 690px; height: 690px; z-index: 8}
.c34 {width: 710px; height: 710px; z-index: 7}
.c35 {width: 730px; height: 730px; z-index: 6}
.c36 {width: 750px; height: 750px; z-index: 5}
.c37 {width: 770px; height: 770px; z-index: 4}
.c38 {width: 790px; height: 790px; z-index: 3}
.c39 {width: 810px; height: 810px; z-index: 2}
.c40 {width: 830px; height: 830px; z-index: 1}


 
@-webkit-keyframes rotating {
    from{-webkit-transform: rotate(0deg);}
    to{-webkit-transform: rotate(360deg);}
}
 
.rotating {-webkit-animation: rotating 10s linear infinite;}
.rotating0 {-webkit-animation: rotating 0.5s linear infinite;}
.rotating1 {-webkit-animation: rotating 1s linear infinite;}
.rotating2 {-webkit-animation: rotating 2s linear infinite;}
.rotating3 {-webkit-animation: rotating 3s linear infinite;}
.rotating4 {-webkit-animation: rotating 4s linear infinite;}
.rotating5 {-webkit-animation: rotating 5s linear infinite;}
.rotating6 {-webkit-animation: rotating 6s linear infinite;}
.rotating7 {-webkit-animation: rotating 7s linear infinite;}
.rotating8 {-webkit-animation: rotating 8s linear infinite;}
.rotating9 {-webkit-animation: rotating 9s linear infinite;}
.rotating10 {-webkit-animation: rotating 10s linear infinite;}
.rotating11 {-webkit-animation: rotating 11s linear infinite;}
.rotating12 {-webkit-animation: rotating 12s linear infinite;}
.rotating13 {-webkit-animation: rotating 13s linear infinite;}
.rotating14 {-webkit-animation: rotating 14s linear infinite;}
.rotating15 {-webkit-animation: rotating 15s linear infinite;}
.rotating16 {-webkit-animation: rotating 16s linear infinite;}
.rotating17 {-webkit-animation: rotating 17s linear infinite;}
.rotating18 {-webkit-animation: rotating 18s linear infinite;}
.rotating19 {-webkit-animation: rotating 19s linear infinite;}
.rotating20 {-webkit-animation: rotating 20s linear infinite;}
.rotating21 {-webkit-animation: rotating 21s linear infinite;}
.rotating22 {-webkit-animation: rotating 22s linear infinite;}
.rotating23 {-webkit-animation: rotating 23s linear infinite;}
.rotating24 {-webkit-animation: rotating 24s linear infinite;}
.rotating25 {-webkit-animation: rotating 25s linear infinite;}
.rotating26 {-webkit-animation: rotating 26s linear infinite;}
.rotating27 {-webkit-animation: rotating 27s linear infinite;}
.rotating28 {-webkit-animation: rotating 28s linear infinite;}
.rotating29 {-webkit-animation: rotating 29s linear infinite;}
.rotating30 {-webkit-animation: rotating 30s linear infinite;}
.rotating31 {-webkit-animation: rotating 31s linear infinite;}
.rotating32 {-webkit-animation: rotating 32s linear infinite;}
.rotating33 {-webkit-animation: rotating 33s linear infinite;}
.rotating34 {-webkit-animation: rotating 34s linear infinite;}
.rotating35 {-webkit-animation: rotating 35s linear infinite;}
.rotating36 {-webkit-animation: rotating 36s linear infinite;}
.rotating37 {-webkit-animation: rotating 37s linear infinite;}
.rotating38 {-webkit-animation: rotating 38s linear infinite;}
.rotating39 {-webkit-animation: rotating 39s linear infinite;}
.rotating40 {-webkit-animation: rotating 40s linear infinite;}

              
            
!

JS

              
                
              
            
!
999px

Console