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 xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="300" height="300">
    <g fill="#f7f7ff">
        <path class="circle" d="M49.971,11.521c-2.078,0-3.768,1.69-3.768,3.768c0,2.078,1.69,3.769,3.768,3.769s3.768-1.69,3.768-3.769  C53.739,13.212,52.049,11.521,49.971,11.521z M49.971,13.521c0.975,0,1.768,0.793,1.768,1.768c0,0.976-0.793,1.769-1.768,1.769  s-1.768-0.793-1.768-1.769C48.203,14.314,48.996,13.521,49.971,13.521z"></path>
        <path class="circle" d="M12.378,79.318c0,2.077,1.69,3.768,3.768,3.768s3.768-1.69,3.768-3.768c0-2.078-1.69-3.769-3.768-3.769  S12.378,77.24,12.378,79.318z M14.378,79.318c0-0.976,0.793-1.769,1.768-1.769c0.975,0,1.768,0.793,1.768,1.769  c0,0.975-0.793,1.768-1.768,1.768C15.171,81.086,14.378,80.293,14.378,79.318z"></path>
        <path class="circle" d="M76.584,81.961c0,2.077,1.69,3.768,3.768,3.768s3.768-1.69,3.768-3.768c0-2.078-1.69-3.769-3.768-3.769  S76.584,79.883,76.584,81.961z M78.584,81.961c0-0.976,0.793-1.769,1.768-1.769s1.768,0.793,1.768,1.769  c0,0.975-0.793,1.768-1.768,1.768S78.584,82.936,78.584,81.961z"></path>
        <path class="circle" d="M80.352,19.552c-2.078,0-3.768,1.69-3.768,3.769c0,2.077,1.69,3.768,3.768,3.768s3.768-1.69,3.768-3.768  C84.12,21.242,82.429,19.552,80.352,19.552z M80.352,21.552c0.975,0,1.768,0.793,1.768,1.769c0,0.975-0.793,1.768-1.768,1.768  s-1.768-0.793-1.768-1.768C78.584,22.345,79.377,21.552,80.352,21.552z"></path>
        <path class="circle" d="M11.93,30.582c0,2.078,1.69,3.769,3.768,3.769s3.768-1.69,3.768-3.769c0-2.077-1.69-3.768-3.768-3.768  S11.93,28.505,11.93,30.582z M13.93,30.582c0-0.975,0.793-1.768,1.768-1.768c0.975,0,1.768,0.793,1.768,1.768  c0,0.976-0.793,1.769-1.768,1.769C14.723,32.351,13.93,31.558,13.93,30.582z"></path>
        <path fill="#ffc600" d="M55.218,74.9c13.578,0,24.625-11.047,24.625-24.625S68.796,25.65,55.218,25.65S30.594,36.697,30.594,50.275  S41.64,74.9,55.218,74.9z M55.218,72.9c-8.014,0-15.064-4.193-19.084-10.496h9.193c0.552,0,1-0.447,1-1s-0.448-1-1-1h-10.33  c-0.491-0.976-0.913-1.992-1.26-3.043h19.925c0.552,0,1-0.447,1-1s-0.448-1-1-1H33.177c-0.377-1.636-0.583-3.337-0.583-5.086  c0-4.545,1.352-8.777,3.667-12.327c0.117,0.048,0.245,0.077,0.38,0.077h11.652c0.552,0,1-0.447,1-1s-0.448-1-1-1H37.662  c4.152-5.106,10.478-8.375,17.557-8.375c9.882,0,18.299,6.371,21.374,15.219H56.803c-0.552,0-1,0.447-1,1s0.448,1,1,1h20.382  c0.35,1.421,0.566,2.894,0.632,4.406H61.401c-0.552,0-1,0.447-1,1s0.448,1,1,1h16.417C77.292,63.288,67.358,72.9,55.218,72.9z"></path>
        <path class="circle-tail" d="M19.595,49.259c0,20.759,16.888,37.646,37.647,37.646c0.552,0,1-0.447,1-1s-0.448-1-1-1  c-19.656,0-35.647-15.991-35.647-35.646c0-7.969,2.701-15.751,7.607-22.001c1.212,0.716,2.62,1.134,4.127,1.134  c4.493,0,8.147-3.654,8.147-8.146s-3.655-8.147-8.147-8.147s-8.147,3.655-8.147,8.147c0,2.267,0.933,4.319,2.432,5.797  C22.442,32.64,19.595,40.852,19.595,49.259z M33.329,26.393c-3.39,0-6.147-2.757-6.147-6.146s2.758-6.147,6.147-6.147  s6.147,2.758,6.147,6.147S36.719,26.393,33.329,26.393z"></path>
        <path class="circle" d="M49.023,62.404c-0.552,0-1-0.447-1-1s0.448-1,1-1h5.797c0.552,0,1,0.447,1,1s-0.448,1-1,1H49.023z"></path>
    </g>
</svg>
              
            
!

CSS

              
                body {
	display: grid;
	align-items: center;
	justify-content: center;
	background: #22292C;
	height: 100vh;
	}

svg {
	width: 100%;
}
              
            
!

JS

              
                var tl = new TimelineMax({repeat:-1, yoyo:true});
    tl
      .set(".circle", {transformOrigin: 'center'})
      .set(".circle-tail", {transformOrigin: '100% 50%'})
      .fromTo(".circle", .4, {scale:0.8}, {scale:1.3}, 0)
      .to(".circle", .4, {scale:0.8})
      .fromTo(".circle-tail", 4, {rotation: 7}, {rotation: -7}, 0)
      .to(".circle-tail", 4, {rotation: 7});
              
            
!
999px

Console