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

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 class="container">
  Hover / Tap
  <div class="dot one"><div class="inner"></div></div>
  <div class="dot two"><div class="inner"></div></div>
  <div class="dot three"><div class="inner"></div></div>
  <div class="dot four"><div class="inner"></div></div>
  <div class="dot five"><div class="inner"></div></div>
  <div class="dot six"><div class="inner"></div></div>
  <div class="dot seven"><div class="inner"></div></div>
  <div class="dot eight"><div class="inner"></div></div>
  <div class="dot nine"><div class="inner"></div></div>
  <div class="dot ten"><div class="inner"></div></div>
  <div class="dot eleven"><div class="inner"></div></div>
  <div class="dot twelve"><div class="inner"></div></div>
  <div class="dot thirteen"><div class="inner"></div></div>
  <div class="dot fourteen"><div class="inner"></div></div>
  <div class="dot fifteen"><div class="inner"></div></div>
  <div class="dot sixteen"><div class="inner"></div></div>
  <div class="dot seventeen"><div class="inner"></div></div>
  <div class="dot eighteen"><div class="inner"></div></div>
  <div class="dot nineteen"><div class="inner"></div></div>
  <div class="dot twenty"><div class="inner"></div></div>
</div>
              
            
!

CSS

              
                .container {
  width: 300px;
  height: 100px;
  position: relative;
  margin: 100px auto;
  border-radius: 50px;
  border: 3px dotted #eee;
  text-align: center;
  font-family: sans-serif;
  padding-top: 10px;
}

.dot {
  position: absolute;
  transform: translateX(25px);
  transition: all 0.75s cubic-bezier(.71,0,.33,1.56) 0ms;
}

.inner {
  position: absolute;
  background: black;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  transform: rotate(0deg);
  opacity: 0.1;
  transition: all 0.75s cubic-bezier(.71,0,.33,1.56) 0ms;
}

.container:hover .dot {
  transform: translateX(225px);
}

.container:hover .inner {
  transform: rotate(360deg) ;
  border-radius: 0%;
  background: pink;
}

.one{
  transition-delay: 0ms
}

.two {
  transition-delay: 3ms;
}
.three {
  transition-delay: 6ms;
}
.four {
  transition-delay: 9ms;
}
.five {
  transition-delay: 11ms;
}
.six {
  transition-delay: 14ms;
}
.seven {
  transition-delay: 17ms;
}
.eight {
  transition-delay: 20ms;
}
.nine {
  transition-delay: 23ms;
}
.ten {
  transition-delay: 26ms;
}
.eleven {
  transition-delay: 29ms;
}
.twelve {
  transition-delay: 32ms;
}
.thirteen {
  transition-delay: 35ms;
}
.fourteen {
  transition-delay: 38ms;
}
.fifteen {
  transition-delay: 41ms;
}
.sixteen {
  transition-delay: 44ms;
}
.seventeen {
  transition-delay: 47ms;
}
.eighteen {
  transition-delay: 50ms;
}
.nineteen {
  transition-delay: 53ms;
}
.twenty {
  transition-delay: 56ms;
}
              
            
!

JS

              
                
              
            
!
999px

Console