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

              
                <svg width="500" height="350" viewBox="0 0 550 400">
		<circle id="circle" r="30" cx="50" cy="50" fill="tomato" />
		<animateMotion 
									 xlink:href="#circle" 
									 dur="1.2s" 
									 begin="click" 
									 fill="freeze"
									 calcMode="spline"
									 keyTimes="0; 0.5; 1"
									 keySplines="0 0 1 1;
															 .42 0 .58 1;"
									 
									 path="M0,0 C53 16 116 16 138 44 167 81 144 135 164 179 170 192 186 206 194 216 228 259 260 284 319 290 359 294 400 294 425 257 452 216 431 158 381 156 364 155 332 151 318 168 308 179 303 189 305 205 309 230 353 242 370 225 376 218 378 195 367 191 366 191 348 188 348 195"
										 />
</svg>
<p>Click on the circle to animate it.</p>
	
	
              
            
!

CSS

              
                svg {
  border: 3px solid #eee;
  display: block;
  margin: 1em auto;
}
p {
  color: #aaa;
  text-align: center;
  margin: 2em 0;
}
              
            
!

JS

              
                
              
            
!
999px

Console