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="container">
  Hover / Tap
  	  		<div class="dot one"><br></div>
	  		<div class="dot two"><br></div>
	  		<div class="dot three"><br></div>
	  		<div class="dot four"><br></div>
	  		<div class="dot five"><br></div>
	  		<div class="dot six"><br></div>
	  		<div class="dot seven"><br></div>
	  		<div class="dot eight"><br></div>
	  		<div class="dot nine"><br></div>
	  		<div class="dot ten"><br></div>
	  		<div class="dot eleven"><br></div>
	  		<div class="dot twelve"><br></div>
	  		<div class="dot thirteen"><br></div>
	  		<div class="dot fourteen"><br></div>
	  		<div class="dot fifteen"><br></div>
	  		<div class="dot sixteen"><br></div>
	  		<div class="dot seventeen"><br></div>
	  		<div class="dot eighteen"><br></div>
	  		<div class="dot nineteen"><br></div>
	  		<div class="dot twenty"><br></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;
		    background: black;
		    width: 50px;
		    height: 50px;
		    border-radius: 50%;
		    transform: rotate(0deg);
		    top: 25px;
		    left: 25px;
        opacity: 0.1;
		    transition: all 0.75s cubic-bezier(.71,0,.33,1.56) 0ms;
	    }

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

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

JS

              
                
              
            
!
999px

Console