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

              
                
<svg version="1.1"
	 xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:a="http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/"
	 x="0px" y="0px" width="800px" height="450px" viewBox="0 0 800 550" enable-background="new 0 0 800 500" xml:space="preserve">
<ellipse id="shadow" fill="#999999" cx="401.5" cy="398.5" rx="249.5" ry="13"/>
<g id="boomBox">
	<path fill="#42210B" d="M571.5,147.6c0-2.6-1-4.9-3-6.3v-37.8c0-2-1.9-3.9-3.9-3.9h-0.8h-13H251.7h-13.2h-0.6c-2,0-3.4,1.9-3.4,3.9
		V142c-2,1.4-2,3.4-2,5.6v8.9h2v1h17v-1h299v1h18v-1h3V147.6z M251.4,135v-7.6c0-2.5,2-4.5,4.5-4.5h291c2.5,0,4.5,2,4.5,4.5v7.6
		c0,2.7-2.2,4.9-4.9,4.9H256.3C253.6,139.8,251.4,137.7,251.4,135z"/>
	<path fill="#42210B" d="M618.4,403.2H184.6c-6.6,0-12-6.4-12-13V158.8c0-6.6,5.4-12,12-12h433.9c6.6,0,12,5.4,12,12v231.3
		C630.4,396.8,625.1,403.2,618.4,403.2z"/>
	<path fill="#BF5A00" d="M567.8,232.2h56v-71c0-4.6-3.7-8.3-8.3-8.3h-47.7V232.2z"/>
	<path fill="#BF5A00" d="M459.6,396.5h152c6.6,0,12-5.4,12-12v-150h-164V396.5z"/>
	<rect x="569.8" y="192" opacity="0.85" fill="#914B00" width="52.7" height="37.5"/>
	<path fill="#BF5A00" d="M235.6,232.2h-56v-71c0-4.6,3.7-8.3,8.3-8.3h47.7V232.2z"/>
	<rect x="181.3" y="192.3" opacity="0.85" fill="#914B00" width="53.2" height="37.5"/>
	<path opacity="0.85" fill="#914B00" d="M463.1,393.5h146.8c6.6,0,12-5.4,12-12V305H463.1V393.5z"/>
	<path fill="#BF5A00" d="M343.8,396.5h-152c-6.6,0-12-5.4-12-12v-150h164V396.5z"/>
	<path fill="#BF5A00" d="M565.9,232.2H237.2v-83.4c0-1.4,1.2-2.6,2.6-2.6h323.5c1.4,0,2.6,1.2,2.6,2.6V232.2z"/>
	<rect x="239.5" y="191" opacity="0.85" fill="#914B00" width="324" height="37.5"/>
	<path fill="#BF5A00" d="M240.2,108.4v35.7l0,0c3.6,0,6.5-2.9,6.5-6.5V125c0-3.4,2.8-6.2,6.2-6.2H551c3.4,0,6.1,2.8,6.1,6.1v12.7
		c0,3.6,2.9,6.5,6.5,6.5l0,0v-35.7c0-2-1.6-3.6-3.6-3.6H243.8C241.8,104.8,240.2,106.4,240.2,108.4z"/>
	<rect x="251.8" y="104.7" width="300.2" height="14"/>
	<polygon fill="#B3B3B3" stroke="#39535E" stroke-miterlimit="10" points="219.3,217.8 196,217.8 185.8,207.6 185.8,183.3 
		196,173.1 219.3,173.1 229.5,183.3 229.5,207.6 	"/>
	<polygon fill="#B3B3B3" stroke="#39535E" stroke-miterlimit="10" points="607.1,217.8 583.8,217.8 573.6,207.6 573.6,183.3 
		583.8,173.1 607.1,173.1 617.3,183.3 617.3,207.6 	"/>
	<rect x="346.4" y="234" fill="#BF5A00" width="110.8" height="162.9"/>
	<rect x="348.6" y="308.6" opacity="0.85" fill="#914B00" width="105.8" height="84.4"/>
	<rect x="356.5" y="236.1" fill="#BF5A00" stroke="#42210B" stroke-miterlimit="10" width="90" height="59"/>
	<rect x="371.4" y="247.7" width="60.2" height="35.4"/>
  <line fill="none" stroke="#FFFFFF" stroke-linecap="round" stroke-miterlimit="10" x1="234.2" y1="154" x2="188.5" y2="154"/>
	<g id='cassatteA'>
		<g>
			<path fill="#CCCCCC" d="M386.9,252.6c-7.9,0-14.2,6.4-14.2,14.2s6.4,14.2,14.2,14.2c7.9,0,14.2-6.4,14.2-14.2
				S394.7,252.6,386.9,252.6z M385.5,255.5h4v4h-4V255.5z M380.5,275.6l-3.1-3.1l3.1-3.1l3.1,3.1L380.5,275.6z M386.9,271.3
				c-2.5,0-4.5-2-4.5-4.5s2-4.5,4.5-4.5s4.5,2,4.5,4.5S389.4,271.3,386.9,271.3z M393.2,275.6l-3.1-3.1l3.1-3.1l3.1,3.1L393.2,275.6
				z"/>
		</g>
		<g>
			<path fill="#CCCCCC" d="M416.1,252.4c-7.9,0-14.2,6.4-14.2,14.2s6.4,14.2,14.2,14.2c7.9,0,14.2-6.4,14.2-14.2
				S424,252.4,416.1,252.4z M414.5,255.5h4v4h-4V255.5z M409.7,275.3l-3.1-3.1l3.1-3.1l3.1,3.1L409.7,275.3z M416.1,271.1
				c-2.5,0-4.5-2-4.5-4.5s2-4.5,4.5-4.5s4.5,2,4.5,4.5S418.6,271.1,416.1,271.1z M422.4,275.3l-3.1-3.1l3.1-3.1l3.1,3.1L422.4,275.3
				z"/>
		</g>
	</g>
	<rect x="356.5" y="316.1" fill="#BF5A00" stroke="#42210B" stroke-miterlimit="10" width="90" height="59"/>
	<g>
		<rect x="376.1" y="252.5" fill="none" stroke="#000000" stroke-width="3" stroke-miterlimit="10" width="50.8" height="27.8"/>
		
			<rect x="376.1" y="252.5" fill="none" stroke="#FFFFFF" stroke-width="2.2178" stroke-miterlimit="10" width="50.8" height="27.8"/>
	</g>
	<g>
			<rect x="372.9" y="249.5" fill="none" stroke="#000000" stroke-width="3.5073" stroke-miterlimit="10" width="57.1" height="33.8"/>
			<rect x="372.9" y="249.5" fill="none" stroke="#FFFFFF" stroke-width="2.5929" stroke-miterlimit="10" width="57.1" height="33.8"/>
	</g>
	<g>
		<rect x="368.8" y="296.8" fill="#CCCCCC" width="12" height="17.3"/>
	</g>
	<g>
		<rect x="409.2" y="296.8" fill="#CCCCCC" width="12" height="17.3"/>
	</g>
	<g id="topStopBtn">
		<rect x="395.8" y="296.8" fill="#CCCCCC" width="12" height="17.3"/>
		<rect x="399.2" y="302.8" fill="#666666" width="5.7" height="5.7"/>
	</g>
	<g id="topPlayBtn">
		<rect x="382.5" y="296.8" fill="#CCCCCC" width="12" height="17.3"/>
		<polygon fill="#666666" points="387.1,301.5 391.1,305.5 387.1,309.5 		"/>
	</g>
	<g>
		<rect x="422.2" y="296.8" fill="#CCCCCC" width="12" height="17.3"/>
	</g>
	<rect x="371.4" y="327.7" width="60.2" height="35.4"/>
	<g id='cassatteB'>
		<g>
			<path fill="#CCCCCC" d="M386.9,332.6c-7.9,0-14.2,6.4-14.2,14.2s6.4,14.2,14.2,14.2c7.9,0,14.2-6.4,14.2-14.2
				S394.7,332.6,386.9,332.6z M385.5,335.5h4v4h-4V335.5z M380.5,355.6l-3.1-3.1l3.1-3.1l3.1,3.1L380.5,355.6z M386.9,351.3
				c-2.5,0-4.5-2-4.5-4.5s2-4.5,4.5-4.5s4.5,2,4.5,4.5S389.4,351.3,386.9,351.3z M393.2,355.6l-3.1-3.1l3.1-3.1l3.1,3.1L393.2,355.6
				z"/>
		</g>
		<g>
			<path fill="#CCCCCC" d="M416.1,332.4c-7.9,0-14.2,6.4-14.2,14.2s6.4,14.2,14.2,14.2c7.9,0,14.2-6.4,14.2-14.2
				S424,332.4,416.1,332.4z M414.5,335.5h4v4h-4V335.5z M409.7,355.3l-3.1-3.1l3.1-3.1l3.1,3.1L409.7,355.3z M416.1,351.1
				c-2.5,0-4.5-2-4.5-4.5s2-4.5,4.5-4.5s4.5,2,4.5,4.5S418.6,351.1,416.1,351.1z M422.4,355.3l-3.1-3.1l3.1-3.1l3.1,3.1L422.4,355.3
				z"/>
		</g>
	</g>
	<g>
		<rect x="376.1" y="332.5" fill="none" stroke="#000000" stroke-width="3" stroke-miterlimit="10" width="50.8" height="27.8"/>
			<rect x="376.1" y="332.5" fill="none" stroke="#FFFFFF" stroke-width="2.2178" stroke-miterlimit="10" width="50.8" height="27.8"/>
	</g>
	<g>
			<rect x="372.9" y="329.5" fill="none" stroke="#000000" stroke-width="3.5073" stroke-miterlimit="10" width="57.1" height="33.8"/>
			<rect x="372.9" y="329.5" fill="none" stroke="#FFFFFF" stroke-width="2.5929" stroke-miterlimit="10" width="57.1" height="33.8"/>
	</g>
	<g>
		<rect x="368.8" y="376.8" fill="#CCCCCC" width="12" height="17.3"/>
	</g>
	<g>
		<rect x="409.2" y="376.8" fill="#CCCCCC" width="12" height="17.3"/>
	</g>
	<g id="bottomStopBtn">
		<rect x="395.8" y="376.8" fill="#CCCCCC" width="12" height="17.3"/>
		<g>
			<rect x="399.1" y="382.9" fill="#666666" width="5.7" height="5.7"/>
		</g>
	</g>
	<g id="bottomPlayBtn">
		<rect x="382.5" y="376.8" fill="#CCCCCC" width="12" height="17.3"/>
		<polygon fill="#666666" points="387,381.9 391,385.9 387,389.9 		"/>
	</g>
	<g>
		<rect x="422.2" y="376.8" fill="#CCCCCC" width="12" height="17.3"/>
<!-- 		<line fill="none" stroke="#E6E6E6" stroke-miterlimit="10" x1="422.2" y1="388.9" x2="434.2" y2="388.9"/>
		<line fill="none" stroke="#E6E6E6" stroke-miterlimit="10" x1="422.2" y1="390.7" x2="434.2" y2="390.7"/> -->
	</g>
	<circle fill="#B3B3B3" stroke="#39535E" stroke-miterlimit="10" cx="538.1" cy="210.6" r="15"/>
		<rect x="243.6" y="161.4" fill="#999999" stroke="#4D4D4D" stroke-width="1.7768" stroke-miterlimit="10" width="315.9" height="21.3"/>
	<rect x="247" y="193.3" fill="#999999" stroke="#4D4D4D" stroke-miterlimit="10" width="5" height="35"/>
	<rect x="257.1" y="193.3" fill="#999999" stroke="#4D4D4D" stroke-miterlimit="10" width="5" height="35"/>
	<rect x="267" y="193.3" fill="#999999" stroke="#4D4D4D" stroke-miterlimit="10" width="5" height="35"/>
	<rect x="277.2" y="193.3" fill="#999999" stroke="#4D4D4D" stroke-miterlimit="10" width="5" height="35"/>
	<rect x="286.7" y="193.3" fill="#999999" stroke="#4D4D4D" stroke-miterlimit="10" width="5" height="35"/>
	<rect x="296.9" y="193.3" fill="#999999" stroke="#4D4D4D" stroke-miterlimit="10" width="5" height="35"/>
	<rect x="306.9" y="193.3" fill="#999999" stroke="#4D4D4D" stroke-miterlimit="10" width="5" height="35"/>
	<rect x="247" y="205.7" width="5" height="14"/>
	<rect x="257.1" y="210.8" width="5" height="14"/>
	<rect x="267" y="209.6" width="5" height="14"/>
	<rect x="277.2" y="201.4" width="5" height="14"/>
	<rect x="286.7" y="206.3" width="5" height="14"/>
	<rect x="306.9" y="205.5" width="5" height="14"/>
	<rect x="296.9" y="212.3" width="5" height="14"/>
	<circle fill="none" stroke="#000000" stroke-width="0.9236" stroke-miterlimit="10" cx="538.1" cy="210.6" r="12.9"/>
	<g>
		<rect x="489" y="200.4" fill="#666666" width="2" height="16"/>
		<rect x="487" y="218.2" fill="#B3B3B3" width="6.2" height="8.5"/>
		<rect x="487" y="222.9" width="6.2" height="3.8"/>
	</g>
	<g>
		<rect x="477.8" y="200.4" fill="#666666" width="2" height="16"/>
		<rect x="475.7" y="218.2" fill="#B3B3B3" width="6.2" height="8.5"/>
		<rect x="475.7" y="222.9" width="6.2" height="3.8"/>
	</g>
	<g>
		<rect x="500.2" y="200.4" fill="#666666" width="2" height="16"/>
		<rect x="498.3" y="218.2" fill="#B3B3B3" width="6.2" height="8.5"/>
		<rect x="498.3" y="222.9" width="6.2" height="3.8"/>
	</g>
	<circle fill="#999999" stroke="#000000" stroke-miterlimit="10" cx="329" cy="208.3" r="4"/>
	<circle fill="#999999" stroke="#000000" stroke-miterlimit="10" cx="342.3" cy="208.3" r="4"/>
	<g>
		<rect x="511.5" y="200.4" fill="#666666" width="2" height="16"/>
		<rect x="509.6" y="218.2" fill="#B3B3B3" width="6.2" height="8.5"/>
		<rect x="509.6" y="222.9" width="6.2" height="3.8"/>
	</g>
	<rect x="427" y="174.5" fill="#FF1D25" width="2.7" height="7.2"/>
	<path opacity="0.85" fill="#914B00" d="M340.2,393.7H194.5c-6.6,0-12-5.4-12-12V308h157.7V393.7z"/>
	<line fill="none" stroke="#FFFFFF" stroke-linecap="round" stroke-miterlimit="10" x1="234.9" y1="154.3" x2="234.9" y2="230.3"/>
	<line fill="none" stroke="#FFFFFF" stroke-linecap="round" stroke-miterlimit="10" x1="246.4" y1="123.2" x2="246.4" y2="137.6"/>
	<path fill="none" stroke="#FFFFFF" stroke-linecap="round" stroke-miterlimit="10" d="M342.8,234.5"/>
	<path fill="none" stroke="#FFFFFF" stroke-linecap="round" stroke-miterlimit="10" d="M184.4,234.5"/>
	<path fill="none" stroke="#FFFFFF" stroke-linecap="round" stroke-miterlimit="10" d="M621.5,376.5L620.7,236H464.5"/>
	<path fill="none" stroke="#FFFFFF" stroke-linecap="round" stroke-miterlimit="10" d="M607.6,392.5"/>
	<g id="leftWoofer">
		<circle fill="#4D4D4D" stroke="#000000" stroke-miterlimit="10" cx="261.8" cy="315.5" r="70"/>
		<circle fill="#2A2A16" stroke="#1A1A1A" stroke-miterlimit="10" cx="261.8" cy="315.5" r="59.7"/>
		<circle fill="#FFFFFF" cx="261.8" cy="315.5" r="19.9"/>
		<circle fill="#4D4D4D" cx="261.8" cy="315.5" r="12.3"/>
		<path fill="none" stroke="#FFFFFF" stroke-width="1.7231" stroke-linecap="round" stroke-miterlimit="10" d="M269.8,251.2
			c32.6,2.7,55.9,33.6,55.9,55.3"/>
		<path opacity="7.000000e-02" fill="#FFFFFF" d="M266.9,334.3c0,0,21.2,6.2,21,35c0,0,9.5,5.9,14.8,2.2
			c11.8-8.2,31.1-31.9,28.1-58.2c-0.5-4.6-9.8-12.4-11.8-17.7c0,0-1.2,4.4-12.5,9.8c-11.3,5.4-29,0.6-29,0.6s7.3,7.2,3,17
			C276.1,332.8,266.9,334.3,266.9,334.3z"/>
		<path opacity="7.000000e-02" fill="#FFFFFF" d="M258.1,296.1c0,0-21.2-6.2-21-35c0,0-9.5-5.9-14.8-2.2
			c-11.8,8.2-31.1,31.9-28.1,58.2c0.5,4.6,9.8,12.4,11.8,17.7c0,0,1.2-4.4,12.5-9.8c11.3-5.4,29-0.6,29-0.6s-7.3-7.2-3-17
			C248.9,297.6,258.1,296.1,258.1,296.1z"/>
		<path fill="none" stroke="#FFFFFF" stroke-linecap="round" stroke-miterlimit="10" d="M261.5,305.3c5.8,0,10.6,5.3,10.6,11.7"/>
	</g>
	<g id="rightWoofer">
		<circle fill="#4D4D4D" stroke="#000000" stroke-miterlimit="10" cx="541.8" cy="315.5" r="70"/>
		<circle fill="#2A2A16" stroke="#1A1A1A" stroke-miterlimit="10" cx="541.8" cy="315.5" r="59.7"/>
		<circle fill="#FFFFFF" cx="541.8" cy="315.5" r="19.9"/>
		<circle fill="#4D4D4D" cx="541.8" cy="315.5" r="12.3"/>
		<path fill="none" stroke="#FFFFFF" stroke-linecap="round" stroke-miterlimit="10" d="M541.5,305.3c5.8,0,10.6,5.3,10.6,11.7"/>
		<path fill="none" stroke="#FFFFFF" stroke-width="1.7231" stroke-linecap="round" stroke-miterlimit="10" d="M549.8,251.8
			c32.6,2.7,55.9,33.6,55.9,55.3"/>
		<path opacity="7.000000e-02" fill="#FFFFFF" d="M546.9,334.7c0,0,21.2,6.2,21,35c0,0,9.5,5.9,14.8,2.2
			c11.8-8.2,31.1-31.9,28.1-58.2c-0.5-4.6-9.8-12.4-11.8-17.7c0,0-1.2,4.4-12.5,9.8c-11.3,5.4-29,0.6-29,0.6s7.3,7.2,3,17
			C556.1,333.2,546.9,334.7,546.9,334.7z"/>
		<path opacity="7.000000e-02" fill="#FFFFFF" d="M538.1,296.1c0,0-21.2-6.2-21-35c0,0-9.5-5.9-14.8-2.2
			c-11.8,8.2-31.1,31.9-28.1,58.2c0.5,4.6,9.8,12.4,11.8,17.7c0,0,1.2-4.4,12.5-9.8c11.3-5.4,29-0.6,29-0.6s-7.3-7.2-3-17
			C528.9,297.6,538.1,296.1,538.1,296.1z"/>
	</g>
	<line fill="none" stroke="#FFFFFF" stroke-linecap="round" stroke-miterlimit="10" x1="456" y1="235.6" x2="456" y2="393.6"/>
	<line fill="none" stroke="#FFFFFF" stroke-linecap="round" stroke-miterlimit="10" x1="348.4" y1="235" x2="456.2" y2="235"/>
	<path fill="none" stroke="#FFFFFF" stroke-linecap="round" stroke-miterlimit="10" d="M241.7,147.7l321-0.2c0.8,0,1.5,0.7,1.5,1.5
		l0,79.1"/>
	<line fill="none" stroke="#914B00" stroke-linecap="round" stroke-miterlimit="10" x1="183.3" y1="237" x2="183.3" y2="320"/>
	<line fill="none" stroke="#914B00" stroke-linecap="round" stroke-miterlimit="10" x1="182.3" y1="161" x2="182.3" y2="192"/>
	<line fill="none" stroke="#914B00" stroke-linecap="round" stroke-miterlimit="10" x1="570.3" y1="156.3" x2="570.3" y2="187.3"/>
	<line fill="none" stroke="#914B00" stroke-linecap="round" stroke-miterlimit="10" x1="463.9" y1="237.7" x2="463.9" y2="320.7"/>
	<g id="leftTweeter">
		<circle fill="#2A2A16" stroke="#1A1A1A" stroke-miterlimit="10" cx="207.6" cy="195.4" r="19.8"/>
		<circle fill="#E6E6E6" stroke="#736357" stroke-width="2" stroke-miterlimit="10" cx="207.6" cy="195.4" r="7.3"/>
		<path opacity="7.000000e-02" fill="#FFFFFF" d="M208.6,200.9c0,0,8.8,11.9,10.4,10.8c3.4-2.4,9-9.3,8.1-16.9
			c-0.2-1.3-15.5-2.1-15.5-2.1s2.1,2.1,0.9,4.9C211.3,200.4,208.6,200.9,208.6,200.9z"/>
		<path opacity="7.000000e-02" fill="#FFFFFF" d="M206.4,190.3c0,0-8.8-11.9-10.4-10.8c-3.4,2.4-9,9.3-8.1,16.9
			c0.2,1.3,15.5,2.1,15.5,2.1s-2.1-2.1-0.9-4.9C203.8,190.7,206.4,190.3,206.4,190.3z"/>
	</g>
	<g id="rightTweeter">
		<circle fill="#2A2A16" stroke="#1A1A1A" stroke-miterlimit="10" cx="595.5" cy="195.4" r="19.8"/>
		<circle fill="#E6E6E6" stroke="#736357" stroke-width="2" stroke-miterlimit="10" cx="595.5" cy="195.4" r="7.3"/>
		<path opacity="7.000000e-02" fill="#FFFFFF" d="M596.1,200.9c0,0,8.8,11.9,10.4,10.8c3.4-2.4,9-9.3,8.1-16.9
			c-0.2-1.3-15.5-2.1-15.5-2.1s2.1,2.1,0.9,4.9C598.8,200.4,596.1,200.9,596.1,200.9z"/>
		<path opacity="7.000000e-02" fill="#FFFFFF" d="M593.9,190.3c0,0-8.8-11.9-10.4-10.8c-3.4,2.4-9,9.3-8.1,16.9
			c0.2,1.3,15.5,2.1,15.5,2.1s-2.1-2.1-0.9-4.9C591.3,190.7,593.9,190.3,593.9,190.3z"/>
	</g>
	<path fill="#4D4D4D" d="M219.8,166.8h-23.3c-2.2,0-4-1.8-4-4v0c0-2.2,1.8-4,4-4h23.3c2.2,0,4,1.8,4,4v0
		C223.8,165,222,166.8,219.8,166.8z"/>
	<path fill="#4D4D4D" d="M608.9,166.6h-23.3c-2.2,0-4-1.8-4-4v0c0-2.2,1.8-4,4-4h23.3c2.2,0,4,1.8,4,4v0
		C612.9,164.8,611.1,166.6,608.9,166.6z"/>
	<line fill="none" stroke="#914B00" stroke-linecap="round" stroke-miterlimit="10" x1="239.5" y1="152.5" x2="239.5" y2="228.5"/>
	<line fill="none" stroke="#914B00" stroke-linecap="round" stroke-miterlimit="10" x1="342.3" y1="236" x2="342.3" y2="394"/>
	<line fill="none" stroke="#914B00" stroke-linecap="round" stroke-miterlimit="10" x1="622.3" y1="237" x2="622.3" y2="378"/>
	<circle fill="#999999" stroke="#000000" stroke-miterlimit="10" cx="355.7" cy="208.3" r="4"/>
	<circle fill="#999999" stroke="#000000" stroke-miterlimit="10" cx="369" cy="208.3" r="4"/>
	<circle fill="#B3B3B3" stroke="#39535E" stroke-width="0.4389" stroke-miterlimit="10" cx="393.3" cy="207" r="6.6"/>
	<circle fill="none" stroke="#000000" stroke-width="0.4054" stroke-miterlimit="10" cx="393.3" cy="207" r="5.7"/>
	<circle fill="#B3B3B3" stroke="#39535E" stroke-width="0.4389" stroke-miterlimit="10" cx="409.9" cy="207" r="6.6"/>
	<circle fill="none" stroke="#000000" stroke-width="0.4054" stroke-miterlimit="10" cx="409.9" cy="207" r="5.7"/>
	<circle fill="#B3B3B3" stroke="#39535E" stroke-width="0.4389" stroke-miterlimit="10" cx="425.9" cy="207" r="6.6"/>
	<circle fill="none" stroke="#000000" stroke-width="0.4054" stroke-miterlimit="10" cx="425.9" cy="207" r="5.7"/>
	<g>
		<rect x="466.5" y="200.4" fill="#666666" width="2" height="16"/>
		<rect x="464.4" y="218.2" fill="#B3B3B3" width="6.2" height="8.5"/>
		<rect x="464.4" y="222.9" width="6.2" height="3.8"/>
	</g>
	<g>
		<rect x="455.2" y="200.4" fill="#666666" width="2" height="16"/>
		<rect x="453.1" y="218.2" fill="#B3B3B3" width="6.2" height="8.5"/>
		<rect x="453.1" y="222.9" width="6.2" height="3.8"/>
	</g>
	<path fill="none" stroke="#FFFFFF" stroke-linecap="round" stroke-miterlimit="10" d="M245,106l315-0.2c1.3,0,2.4,1.1,2.4,2.4v33.6
		"/>
	<path fill="none" stroke="#FFFFFF" stroke-linecap="round" stroke-miterlimit="10" d="M570.4,154.2h43.9c4.1,0,7.5,3.3,7.5,7.5
		l0,67.5"/>
	<polyline fill="none" stroke="#FFFFFF" stroke-linecap="round" stroke-miterlimit="10" points="183.9,236 340.7,236 340.6,392.5 	
		"/>
	<polyline fill="none" stroke="#FFFFFF" stroke-linecap="round" stroke-miterlimit="10" points="247.5,163.5 557.5,163.3 
		557.5,179.8 	"/>
</g>
<g id="leftBolts">
	<path fill="#FCEE21" stroke="#39535E" stroke-width="2" stroke-miterlimit="10" d="M146.8,291.3l-2.9,2.7c-0.4,0.3-0.3,0.9,0.1,1.2
		l17.1,9.8c0.8,0.4,0.3,1.6-0.6,1.4l-29.9-7.6c-0.6-0.1-0.8-0.9-0.3-1.3l4.2-4c0.4-0.4,0.3-1-0.2-1.2l-9-3.6
		c-0.5-0.2-0.6-0.9-0.2-1.2l7.2-6.8c0.3-0.2,0.7-0.3,1-0.1l13.3,9.6C147.1,290.4,147.1,291,146.8,291.3z"/>
	<path fill="#FCEE21" stroke="#39535E" stroke-width="2" stroke-miterlimit="10" d="M125.2,305.2l-1.5,4.5c-0.2,0.6,0.2,1.2,0.8,1.2
		l23.6,0.9c1,0,1.2,1.5,0.2,1.8l-35.8,8.5c-0.7,0.2-1.3-0.5-1.1-1.2l2.3-6.6c0.2-0.6-0.3-1.2-0.9-1.2l-11.5,1.2
		c-0.6,0.1-1.1-0.6-0.9-1.2l3.9-11.2c0.1-0.4,0.5-0.7,1-0.6l19.4,2.8C125.1,304.1,125.4,304.6,125.2,305.2z"/>
	<path fill="#FCEE21" stroke="#39535E" stroke-width="2" stroke-miterlimit="10" d="M143.2,322l1.1,3.8c0.1,0.5,0.7,0.7,1.1,0.4
		l16.5-10.9c0.7-0.5,1.5,0.5,1,1.1l-20.2,23.3c-0.4,0.4-1.1,0.3-1.3-0.3l-1.7-5.6c-0.2-0.5-0.8-0.7-1.2-0.3l-7.2,6.4
		c-0.4,0.4-1.1,0.2-1.2-0.3l-2.9-9.5c-0.1-0.3,0.1-0.7,0.4-0.9l14.5-7.6C142.6,321.4,143.1,321.6,143.2,322z"/>
</g>
<g id="rightBolts">
	<path fill="#FCEE21" stroke="#39535E" stroke-width="2" stroke-miterlimit="10" d="M657.2,290l2.9,2.7c0.4,0.3,0.3,0.9-0.1,1.2
		l-17.1,9.8c-0.8,0.4-0.3,1.6,0.6,1.4l29.9-7.6c0.6-0.1,0.8-0.9,0.3-1.3l-4.2-4c-0.4-0.4-0.3-1,0.2-1.2l9-3.6
		c0.5-0.2,0.6-0.9,0.2-1.2l-7.2-6.8c-0.3-0.2-0.7-0.3-1-0.1l-13.3,9.6C656.9,289.1,656.9,289.7,657.2,290z"/>
	<path fill="#FCEE21" stroke="#39535E" stroke-width="2" stroke-miterlimit="10" d="M678.8,303.9l1.5,4.5c0.2,0.6-0.2,1.2-0.8,1.2
		l-23.6,0.9c-1,0-1.2,1.5-0.2,1.8l35.8,8.5c0.7,0.2,1.3-0.5,1.1-1.2l-2.3-6.6c-0.2-0.6,0.3-1.2,0.9-1.2l11.5,1.2
		c0.6,0.1,1.1-0.6,0.9-1.2l-3.9-11.2c-0.1-0.4-0.5-0.7-1-0.6l-19.4,2.8C678.9,302.8,678.6,303.3,678.8,303.9z"/>
	<path fill="#FCEE21" stroke="#39535E" stroke-width="2" stroke-miterlimit="10" d="M660.8,320.7l-1.1,3.8c-0.1,0.5-0.7,0.7-1.1,0.4
		L642,314c-0.7-0.5-1.5,0.5-1,1.1l20.2,23.3c0.4,0.4,1.1,0.3,1.3-0.3l1.7-5.6c0.2-0.5,0.8-0.7,1.2-0.3l7.2,6.4
		c0.4,0.4,1.1,0.2,1.2-0.3l2.9-9.5c0.1-0.3-0.1-0.7-0.4-0.9l-14.5-7.6C661.4,320,660.9,320.3,660.8,320.7z"/>
</g>
  
  <text y='80%' x='50%'> Click a play button. Make sure your sound is on.</text>

</svg>



              
            
!

CSS

              
                body{
  padding:0;
  margin:0;
  background-color:#BDCCD4;
}

svg{
  display:block;
  margin:0 auto;}

text{
  position:absolute;
  text-anchor:middle;
  display:block;
  content:'Click a play button. Make sure your sound is on.';
  font-family: 'Raleway', sans-serif;
  font-size:1.25em;
}
              
            
!

JS

              
                var spinTopReels = new TweenMax.to('#cassatteA g',2,{rotation:360,ease:Linear.easeInOut,transformOrigin:'50% 50%',repeat:-1,paused:true})
var spinBottomReels = new TweenMax.to('#cassatteB g',2,{rotation:360,ease:Linear.easeInOut,transformOrigin:'50% 50%',repeat:-1,paused:true})

var boomBoxDance = new TimelineMax({repeat:-1,yoyo:true,paused:true})
boomBoxDance.fromTo(['#rightWoofer','#leftWoofer','#rightTweeter','#leftTweeter'],.25,{scale:1.0155,ease:Linear.easeInOut,transformOrigin:'50% 50%'},{scale:1,ease:Linear.easeInOut,transformOrigin:'50% 50%'})
  .fromTo('#leftBolts',.25,{scale:1,transformOrigin:'100% 50%'},{scale:.75,transformOrigin:'100% 50%'},'-=.25')
  .fromTo('#rightBolts',.25,{scale:1,transformOrigin:'0% 50%'},{scale:.75,transformOrigin:'0% 50%'},'-=.25')
  .fromTo('#boomBox',.25,{y:0},{y:-3},'-=.25')
  .fromTo('#shadow',.25,{scale:1,transformOrigin:'50% 50%'},{scale:.99,transformOrigin:'50% 50%'},'-=.25')
boomBoxDance.timeScale(.95)


var track1 = new Audio('https://s3-us-west-2.amazonaws.com/s.cdpn.io/317637/Cha,_Cha,_Cha.mp3');
var track2 = new Audio('https://s3-us-west-2.amazonaws.com/s.cdpn.io/317637/Scenario.mp3');

$('#topPlayBtn').click(function(){
  spinTopReels.play(); 
  boomBoxDance.play();
  track1.play();
  if (track2.duration > 0){ track2.pause()}
  spinBottomReels.pause(); 
})

$('#topStopBtn').click(function(){
  spinTopReels.pause(); 
  boomBoxDance.pause();
  track1.pause();
  spinBottomReels.pause();
  if (track2.duration > 0){ track2.pause()}
})

$('#bottomPlayBtn').click(function(){
  spinBottomReels.play(); 
  boomBoxDance.play();
  track2.play();
  spinTopReels.pause(); 
  if (track1.duration > 0){ track1.pause()}
})

$('#bottomStopBtn').click(function(){
  spinBottomReels.pause(); 
  boomBoxDance.pause();
  track2.pause();
  spinTopReels.pause(); 
  if (track1.duration > 0){ track1.pause()}
})

	
track1.addEventListener("ended", function() {
  spinTopReels.pause(); 
  boomBoxDance.pause();
});

track2.addEventListener("ended", function() {
  spinBottomReels.pause(); 
  boomBoxDance.pause();
});




              
            
!
999px

Console