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

              
                <svg id="kidsbike" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
	 viewBox="0 0 425.4 285" style="enable-background:new 0 0 425.4 285;" xml:space="preserve">
<g id="wheels">
	<g id="back-wheel">
		<path style="fill:none;stroke:#4E4F4F;stroke-width:2;stroke-miterlimit:10;" d="M81,131.5v145 M8,204.5h145 M132.1,255.4
			L29.6,152.9 M132.1,153.6L29.6,256.1 M108.7,271.3l-55.5-134 M147.7,177.2l-134,55.5 M13.7,176.3l134,55.5 M108.7,137.7l-55.5,134
			"/>
		<path style="fill:#560172;" d="M80.9,285C36.2,284.8-0.1,248.3,0,203.6s36.5-80.8,81.1-80.6c44.7,0.2,80.9,36.7,80.9,81.4
			S125.5,285.2,80.9,285z M81.1,131.2C41,131,8.3,163.5,8.2,203.7s32.5,72.9,72.7,73.1c40.1,0.2,72.8-32.3,72.9-72.5
			S121.3,131.4,81.1,131.2z"/>
		<path style="fill:#E57D22;" d="M80.9,277C40.6,276.8,7.9,243.9,8,203.7c0.1-40.3,32.9-72.9,73.1-72.7s72.9,33.1,72.9,73.3
			S121.1,277.2,80.9,277z M81.1,138.4c-36.2-0.2-65.7,29.1-65.7,65.3s29.3,65.7,65.5,65.9s65.7-29.1,65.7-65.3
			S117.3,138.6,81.1,138.4z"/>
		<circle style="fill:#5E5E5E;" cx="81" cy="204" r="13"/>
	</g>
	<g id="front-wheel">
		<path style="fill:none;stroke:#4E4F4F;stroke-width:2;stroke-miterlimit:10;" d="M341,131.5v145 M268,204.5h145 M289.6,152.9
			l102.5,102.5 M289.6,256.1l102.5-102.5 M368.7,271.3l-55.5-134 M273.7,232.7l134-55.5 M407.7,231.8l-134-55.5 M368.7,137.7
			l-55.5,134"/>
		<path style="fill:#560172;" d="M340.9,285c-44.7-0.2-80.9-36.7-80.9-81.4c0.1-44.7,36.5-80.8,81.1-80.6
			c44.7,0.2,80.9,36.7,80.9,81.4C421.9,249,385.5,285.2,340.9,285z M341.1,131.2c-40.1-0.2-72.8,32.3-72.9,72.5
			c-0.1,40.1,32.5,72.9,72.7,73.1c40.1,0.2,72.8-32.3,72.9-72.5C413.9,164.2,381.3,131.4,341.1,131.2z"/>
		<path style="fill:#E57D22;" d="M340.9,277c-40.3-0.2-72.9-33.1-72.9-73.3s32.9-72.9,73.1-72.7s72.9,33.1,72.9,73.3
			S381.1,277.2,340.9,277z M341.1,138.4c-36.2-0.2-65.7,29.1-65.7,65.3s29.3,65.7,65.5,65.9s65.7-29.1,65.7-65.3
			S377.3,138.6,341.1,138.4z"/>
		<circle style="fill:#5E5E5E;" cx="341" cy="204" r="13"/>
	</g>
	<path class='fender' style="fill:#9A59B5;" d="M400,144.1c1.3,0,2.3,0.3,3.3,0.7c0.5-0.5,1-0.9,1.5-1.2c0.1-0.1,0.3-0.1,0.4-0.2
		c-15.7-16.7-38.8-27-65.5-26.6c-30.9,0.4-57.1,15.1-72.4,37c0.9,0.8,1.7,1.8,2.2,2.9c0.9-0.6,1.9-0.9,3.2-1
		c15-20.3,39.8-34.5,67.1-34.9c22.7-0.3,43.9,8.9,59.4,23.4C399.5,144.1,399.7,144.1,400,144.1z"/>
	<path class='fender' style="fill:#9A59B5;" d="M140,144.1c1.3,0,2.3,0.3,3.3,0.7c0.5-0.5,1-0.9,1.5-1.2c0.1-0.1,0.3-0.1,0.4-0.2
		c-15.7-16.7-38.8-27-65.5-26.6c-30.9,0.4-57.1,15.1-72.4,37c0.9,0.8,1.7,1.8,2.2,2.9c0.9-0.6,1.9-0.9,3.2-1
		c15-20.3,39.8-34.5,67.1-34.9c22.7-0.3,43.9,8.9,59.4,23.4C139.5,144.1,139.7,144.1,140,144.1z"/>
</g>
<g id="frame">
	<path style="fill:#9A59B5;" d="M341.1,209.3c-2,0-3.9-1.2-4.7-3.2L281.4,66.8c-0.9-2.2-0.1-4.7,1.9-6
		c15.6-10.5,32.3-25.5,32.3-31.3c0-0.7-0.8-7.5-28.4-14.1c-15.6-3.8-31.4-5.4-31.6-5.4c-2.7-0.3-4.8-2.7-4.5-5.5
		c0.3-2.7,2.7-4.8,5.5-4.5c0.7,0.1,16.6,1.7,32.9,5.6c24.3,5.8,36.1,13.6,36.1,23.9c0,12.5-22.5,29.7-33.4,37.4l53.7,135.6
		c1,2.6-0.2,5.5-2.8,6.5C342.4,209.2,341.8,209.3,341.1,209.3z"/>
	<path style="fill:#9A59B5;" d="M304,98.4c-2-1.9-5.1-1.9-7.1,0l-94.6,95.8l-20.8-52.6c12.5-1.7,41.1-6.4,59.6-15.6
		c22.4-11.1,26.4-14,41.5-24.6c3.8-2.7,8.1-5.7,13.6-9.6c1.8-1.3,2.3-3.8,1-5.6c-1.3-1.8-3.8-2.3-5.6-1c-5.5,3.8-9.9,6.9-13.7,9.6
		c-14.6,10.4-18.6,13.1-40.4,24c-18.4,9.1-48.4,13.7-59.1,15.1l-28-70.7c-1-2.6-3.9-3.8-6.5-2.8c-2.6,1-3.8,3.9-2.8,6.5l17.1,43.3
		l-81,91.3c-1.1,1.2-1,3.1,0.3,4.2c0.6,0.5,1.3,0.8,2,0.8c0.8,0,1.7-0.3,2.2-1l79-89l35.5,89.7c0.8,1.9,2.6,3.2,4.6,3.2
		c0.3,0,0.6,0,0.9-0.1c2.2-0.4,3.8-2.2,4-4.4l98.1-99.4C306,103.5,306,100.3,304,98.4z"/>
</g>
<g id="assembly">
	<path style="fill:#2ECB71;" d="M197.7,226.8l-121.1-6.5c-8.4-0.5-15-7.5-15-16v0c0-8.4,6.6-15.4,15-16l121.1-6.5
		c13-0.8,24,9.5,24,22.5v0C221.6,217.4,210.6,227.7,197.7,226.8z"/>
	<path style="fill:#169F84;" d="M199.1,221.9c-0.4,0-0.8,0-1.1,0l-120.1-5.5c-1.4,0-2.2-6.2-2.2-12s-1.5-12.6,4.3-13l118-4.5
		c0.4,0,0.8,0,1.2,0c9.6,0,17.5,7.9,17.5,17.5S208.8,221.9,199.1,221.9z"/>
	<path style="fill:#05C19D;" d="M197.7,181.9l-121.1,6.5c-8.4,0.5-15,7.5-15,16s6.6,15.4,15,16l0.7,0c-7.3-1.3-12.7-7.6-12.7-15.1v0
		c0-8.1,6.3-14.8,14.4-15.3l116.4-6.2c12.5-0.8,23,9.1,23,21.6v0c0,11.6-9.1,21-20.5,21.6c12.8,0.6,23.6-9.6,23.6-22.5v0
		C221.6,191.4,210.6,181.1,197.7,181.9z"/>
	<circle style="fill:#9A59B5;" cx="80.6" cy="203.9" r="12.5"/>
	<circle style="fill:#9A59B5;" cx="199.6" cy="203.9" r="16.4"/>
	<path style="fill:#2ECB71;" d="M105.7,216l67.6,3.1c-6-3-10.1-7.2-10.1-14.3c0-7.3,4.3-11.6,10.5-14.5l-69.6,2.7
		c5.8,2,10,5.4,10,11.9C114.1,210.6,110.6,213.6,105.7,216z"/>
	<path style="fill:#9A59B5;" d="M199.6,217.3c-7.4,0-13.4-6-13.4-13.4s6-13.4,13.4-13.4s13.4,6,13.4,13.4S207,217.3,199.6,217.3z"/>
</g>
<g id="pedal">
	<path style="fill:#560172;" d="M234.7,240.3c-0.6,0-1.3-0.2-1.8-0.7l-35.1-35.1c-1-1-1-2.6,0-3.5c1-1,2.6-1,3.5,0l35.1,35.1
		c1,1,1,2.6,0,3.5C235.9,240.1,235.3,240.3,234.7,240.3z"/>
	<g id="flatPedal">
  <path style="fill:#2ECB71;" d="M221.8,231.5h23c2.2,0,4,1.8,4,4v1.8c0,2.2-1.8,4-4,4h-23c-2.2,0-4-1.8-4-4v-1.8
		C217.8,233.3,219.5,231.5,221.8,231.5z"/>
	<path style="fill:#E57D22;" d="M247.9,232.8c0,0.2,0.1,0.5,0.1,0.7v1.8c0,2.2-2,4.2-4.2,4.2h-23c-1.2,0-2.2-0.5-2.9-1.3
		c0.3,1.9,2,3.3,3.9,3.3h23c2.2,0,4.2-2,4.2-4.2v-1.8C249,234.5,248.6,233.5,247.9,232.8z"/>
  </g>
  </g>
<g id="seat">
	<path style="fill:#2ECB71;" d="M116.7,54.5h60.1c3.9,0,7,3.1,7,7v1.1c0,3.9-3.1,7-7,7h-60.1c-3.9,0-7-3.1-7-7v-1.1
		C109.8,57.6,112.9,54.5,116.7,54.5z"/>
	<path style="fill:#05C19D;" d="M181.5,56.3c0.1,0.4,0.5,0.8,0.5,1.2v3.1c0,3.9-3.1,5.9-6.9,5.9H115c-2,0-3.8-1.1-5.1-2.5
		c0.6,3.3,3.4,5.5,6.9,5.5h60.1c3.9,0,7.2-3.6,7.2-7.4V61C184,59.2,183.2,57.7,181.5,56.3z"/>
</g>
<g id="handles">
	<path style="fill:#1ABB9B;" d="M284.1,14.6c-0.4,0-0.7,0-1.1-0.1c-14.2-3.1-27.4-4.5-27.6-4.5c-2.7-0.3-4.7-2.7-4.5-5.5
		c0.3-2.7,2.7-4.8,5.5-4.5c0.6,0.1,13.9,1.4,28.7,4.6c2.7,0.6,4.4,3.3,3.8,6C288.5,13,286.4,14.6,284.1,14.6z"/>
	<path style="fill:#2C3E50;" d="M277.8,8.1c0.3-2-0.4-3.9-1.7-5.3c-1.4-0.2-2.7-0.5-4-0.7c1.3,1.4,2,3.3,1.7,5.3
		c-0.2,1.5-1.6,3.4-3,4.6c1.3,0.2,2.6,0.4,3.9,0.7C276.2,11.6,277.6,9.7,277.8,8.1z"/>
	<path style="fill:#2C3E50;" d="M270.9,7c0.3-2-0.4-4-1.7-5.3c-1.4-0.2-2.7-0.4-3.9-0.6c1.3,1.4,2,3.3,1.7,5.3
		c-0.2,1.5-1.7,3.4-3,4.6c1.2,0.2,2.6,0.4,4,0.6C269.3,10.5,270.7,8.6,270.9,7z"/>
	<path style="fill:#2C3E50;" d="M284.7,9.3c0.3-1.9-0.3-3.6-1.4-5c-1.4-0.3-2.8-0.6-4.1-0.8c1.2,1.3,1.9,3.2,1.6,5.2
		c-0.3,1.6-1.7,3.5-3.1,4.7c1.2,0.2,2.5,0.5,3.8,0.8C282.9,13,284.5,10.9,284.7,9.3z"/>
	<path style="fill:#2C3E50;" d="M264,5.9c0.3-2-0.3-3.9-1.6-5.2c-1.5-0.2-2.8-0.4-3.8-0.5c1.2,1.3,1.8,3.2,1.5,5
		c-0.3,1.6-1.8,3.7-3.2,4.8c0.9,0.1,2.3,0.3,4.1,0.5C262.3,9.5,263.8,7.5,264,5.9z"/>
</g>
</svg>


              
            
!

CSS

              
                *, *:after, *:before { -webkit-box-sizing: border-box; box-sizing: border-box; }
.clearfix:before, 
.clearfix:after {
  display: table;  content: '';
}

.clearfix:after { clear: both; }

body {
    background: #222;
    margin:0;padding:0;
}

#front_wheel {position:absolute;}
              
            
!

JS

              
                var kidsbike = $('#kidsbike');
var backWheel = $('#back-wheel');
var frontWheel = $('#front-wheel');
var pedal = $('#pedal');



TweenMax.to(frontWheel, 3, {transformOrigin:"50% 50%", rotation:"+=360", repeat:-1, ease:Linear.easeNone});
TweenMax.to(backWheel, 3, {transformOrigin:"50% 50%", rotation:"+=360", repeat:-1, ease:Linear.easeNone});
TweenMax.to(pedal, 3, { rotation:"+=360", repeat:-1, ease:Linear.easeNone});
TweenMax.to("#flatPedal", 3, { transformOrigin:"50% 50%", rotation:"-=360", repeat:-1, ease:Linear.easeNone});
              
            
!
999px

Console