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 id="svgWrapper">
	<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 320">
		<path fill="#C4E8F7" d="M0 0h320v320H0z"/>
		<path fill="none" stroke="#A97C50" stroke-miterlimit="10" stroke-width="40" d="M119 0v103"/>
		<path fill="none" stroke="#A97C50" stroke-miterlimit="10" stroke-width="40" d="M201 0v103"/>
		<path fill="none" stroke="#000" stroke-miterlimit="10" stroke-width="12" d="M133.3.3v103" opacity=".07"/>
		<path fill="none" stroke="#000" stroke-miterlimit="10" stroke-width="32" d="M197 0v103" opacity=".07"/>
		<g fill="none" stroke-miterlimit="10">
			<path stroke="#FFF" stroke-width="40" d="M201 101v112"/>
			<path stroke="#000" stroke-width="32" d="M197 101v112" opacity=".07"/>
			<path stroke="#FFF" stroke-width="46" d="M201 101v28"/>
			<g stroke="#009444" stroke-width="46">
				<path d="M201 105v4.7"/>
				<path d="M201 113v4.7"/>
				<path d="M201 121v4.7"/>
			</g>
			<path stroke="#000" stroke-width="38" d="M197 101v28" opacity=".07"/>
			<path stroke="#000" stroke-width="8" d="M217 129v4" opacity=".07"/>
		</g>
		<g fill="none" stroke-miterlimit="10">
			<path stroke="#FFF" stroke-width="40" d="M119 101v112"/>
			<path stroke="#000" stroke-width="12" d="M133 101v112" opacity=".07"/>
			<path stroke="#FFF" stroke-width="46" d="M119 101v28"/>
			<path stroke="#000" stroke-width="28" d="M113 129v4" opacity=".07"/>
			<g stroke="#009444" stroke-width="46">
				<path d="M119 105v4.7"/>
				<path d="M119 113v4.7"/>
				<path d="M119 121v4.7"/>
			</g>
			<path stroke="#000" stroke-width="18" d="M133 101v28" opacity=".07"/>
		</g>
		<g id="shoeR">
			<path fill="#1B75BC" d="M169 241h108v-2.2c0-16.5-13.3-29.8-29.8-29.8h-65c-7.3 0-13.2 5.9-13.2 13.2V241z"/>
			<path fill="none" stroke="#0E3B5E" stroke-linecap="round" stroke-miterlimit="10" stroke-width="4" d="M181 209h40"/>
			<path fill="none" stroke="#414042" stroke-miterlimit="10" stroke-width="10" d="M277 241H169"/>
			<path fill="none" stroke="#FFF" stroke-linecap="round" stroke-miterlimit="10" stroke-width="4" d="M231 217v-8"/>
			<path fill="none" stroke="#FFF" stroke-linecap="round" stroke-miterlimit="10" stroke-width="4" d="M239 217v-8"/>
			<path fill="none" stroke="#FFF" stroke-linecap="round" stroke-miterlimit="10" stroke-width="4" d="M247 217v-8"/>
		</g>

		<path id="shoeShadow" d="M127 213.1c-2.5-.7-5.2-1.1-8-1.1-8.2 0-15.4 3.1-20 8v24h28v-30.9z" opacity=".07"/>
		<path id="shoeSide" fill="#1B75BC" d="M141.1 246H99v-37h30.4c11.9 0 21.6 9.7 21.6 21.6v5.5c0 5.5-4.4 9.9-9.9 9.9z"/>
		<path id="cuff" fill="none" stroke="#0E3B5E" stroke-linecap="round" stroke-miterlimit="10" stroke-width="4" d="M99 209h40"/>
		<path id="lace" fill="none" stroke="#FFF" stroke-linecap="round" stroke-miterlimit="10" stroke-width="4" d="M104 206c14.4 0 27 7.6 34.1 19"/>
		<path id="lace2" style="visibility: hidden;" fill="none" stroke="#FFFFFF" stroke-width="4" stroke-linecap="round" stroke-miterlimit="10" d="M104,206 c14.4,0,22.5,11.3,39.1,8"/>
		<path id="shoeFront" fill="#4991C9" d="M59 241c0-22.1 17.9-40 40-40s40 17.9 40 40H59z"/>
		<path id="shoeFront2" style="visibility: hidden;" fill="#4991C9" d="M59,216c0-16.6,17.9-30,40-30s40,13.4,40,30C113.8,203.1,87.3,202.3,59,216z"/>
		<path id="soleBottom" fill="#231F20" d="M151,245.8c0,0.1,0,0.2,0,0.2h-51c-12.7,0-41-0.1-41-0.3c23.5-0.2,52.8-0.3,80,0 C142.2,245.8,146,245.8,151,245.8L151,245.8z"/>
		<path id="soleBottom2" style="visibility: hidden;" fill="#231F20" d="M151,235.5c0,5.7,0,10.5,0,10.5h-51c-12.7,0-41-7.8-41-21.5c23.5-16,52.8-18.3,80,0 C142.2,230.3,146,233.7,151,235.5L151,235.5z"/>
		<path id="soleSide" fill="#414042" d="M139,246c3.9,0,7.9,0,12,0v-5l0-5c-4,0.1-8.1,0.1-12,0l0,5V246z"/>
		<path id="soleSide2" style="visibility: hidden;" fill="#414042" d="M151,246v-5c0,0,0-3.8,0-5.5c-5.6-2.7-9.1-10-12-19.5v5v5C139.6,232.5,145.7,241,151,246z"/>
		<path id="soleFront" fill="#58595B" d="M59 236h80v10H59z"/>
		<path id="soleFront2" style="visibility: hidden;" fill="#58595B" d="M139 225.5c-28.4-14.9-55.2-14.8-80 0v-10c23.8-14.4 52.5-16.2 80 0v10z"/>
		<path id="soleTip" fill="#58595B" d="M73.7 237c0-8.3 9-15 20-15s20 6.7 20 15h-40z"/>
	</svg>
</div>
              
            
!

CSS

              
                body, html {margin: 0; padding: 0; width: 100%; height: 100%; }
body {display: flex; justify-content: center; align-items: center;}
#svgWrapper {
	width: 320px; height: 320px;
	position: relative;
	svg {
		position: absolute;
		width: 100%; height: 100%;
		border-radius: 50%; overflow: hidden;
	}
}

              
            
!

JS

              
                var 	duration = .4,
    	shoeTimeline
;

TweenLite.defaultEase = Quad.easeInOut;

shoeTimeline = new TimelineMax({paused: true, repeat: -1, repeatDelay: .1});
shoeTimeline
	.to('#shoeFront', duration, {morphSVG: '#shoeFront2'}, "0")
	.to('#soleFront', duration, {morphSVG: '#soleFront2'}, "0")
	.to('#soleBottom', duration, {morphSVG: '#soleBottom2'}, "0")
	.to('#soleSide', duration, {morphSVG: {shape: '#soleSide2', shapeIndex: 1}}, "0")
	.to('#soleTip', duration, {y: -29}, "0")
	.to('#shoeShadow', duration, {y: -30}, "0")

	.to('#lace', .2, {morphSVG: '#lace2'}, ".25")
	.to('#lace', .4, {morphSVG: '#lace'}, ".5")

	.to('#shoeFront', duration, {morphSVG: '#shoeFront'}, duration)
	.to('#soleFront', duration, {morphSVG: '#soleFront'}, duration)
	.to('#soleBottom', duration, {morphSVG: '#soleBottom'}, duration)
	.to('#soleSide', duration, {morphSVG: {shape: '#soleSide', shapeIndex: 5}}, duration)
	.to('#soleTip', duration, {y: 0}, duration)
	.to('#shoeShadow', duration, {y: 0}, duration)
;

shoeTimeline.timeScale(1.5);
shoeTimeline.play();
              
            
!
999px

Console