Pen Settings

HTML

CSS

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

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

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.

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 id="box">
    <div id="box_in">
        <div class="line a1"><div class="circle a1"></div></div>
        <div class="line a2"><div class="circle a2"></div></div>
        <div class="line a3"><div class="circle a3"></div></div>
        <div class="line a4"><div class="circle a4"></div></div>
        <div class="line a5"><div class="circle a5"></div></div>
        <div class="line a6"><div class="circle a6"></div></div>
        <div class="line a7"><div class="circle a7"></div></div>
        <div class="line a8"><div class="circle a8"></div></div>
        <div class="line a9"><div class="circle a9"></div></div>
        <div class="line a10"><div class="circle a10"></div></div>
        <div class="line a11"><div class="circle a11"></div></div>
        <div class="line a12"><div class="circle a12"></div></div>
        <div class="line a13"><div class="circle a13"></div></div>
        <div class="line a14"><div class="circle a14"></div></div>
        <div class="line a15"><div class="circle a15"></div></div>
        <div class="line a16"><div class="circle a16"></div></div>
        <div class="line a17"><div class="circle a17"></div></div>
        <div class="line a18"><div class="circle a18"></div></div>

    </div>
  </div>
              
            
!

CSS

              
                body{ background: #262626}
#box{
    width: 500px;
    height: 500px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    background: rgba(0,0,0,.1);
    border-radius: 50%;
}
#box_in{
    position: relative;
}
.line{
    position: absolute;
    top: 250px;
    width: 500px;
    height: 1px;
    background: rgba(204, 204, 0,.1);
}
.circle{
    position: absolute;
    top: -10px;
    left: 0;
    width: 20px;
    height: 20px;
    background: #e65c00;
    animation: ani 3.6s ease-in-out infinite;
    border-radius: 50%;
}
.a1{transform: rotate(0deg)}
.a2{transform: rotate(10deg)}
.a3{transform: rotate(20deg)}
.a4{transform: rotate(30deg)}
.a5{transform: rotate(40deg)}
.a6{transform: rotate(50deg)}
.a7{transform: rotate(60deg)}
.a8{transform: rotate(70deg)}
.a9{transform: rotate(80deg)}
.a10{transform: rotate(90deg)}
.a11{transform: rotate(100deg)}
.a12{transform: rotate(110deg)}
.a13{transform: rotate(120deg)}
.a14{transform: rotate(130deg)}
.a15{transform: rotate(140deg)}
.a16{transform: rotate(150deg)}
.a17{transform: rotate(160deg)}
.a18{transform: rotate(170deg)}

.circle.a1{animation-delay: .0s;}
.circle.a2{animation-delay: .1s;}
.circle.a3{animation-delay: .2s;}
.circle.a4{animation-delay: .3s;}
.circle.a5{animation-delay: .4s;}
.circle.a6{animation-delay: .5s;}
.circle.a7{animation-delay: .6s;}
.circle.a8{animation-delay: .7s;}
.circle.a9{animation-delay: .8s;}
.circle.a10{animation-delay: .9s;}
.circle.a11{animation-delay: 1s;}
.circle.a12{animation-delay: 1.1s;}
.circle.a13{animation-delay: 1.2s;}
.circle.a14{animation-delay: 1.3s;}
.circle.a15{animation-delay: 1.4s;}
.circle.a16{animation-delay: 1.5s;}
.circle.a17{animation-delay: 1.6s;}
.circle.a18{animation-delay: 1.7s;}

@keyframes ani{
    0%{
        left: 0px;
    }
    50%{
        left: 480px;
    }
    100%{
        left: 0px;
    }
}
              
            
!

JS

              
                
              
            
!
999px

Console