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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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

              
                <div id="container">
<img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/314556/chalkboard.jpg" width="1800" height="1200" alt="Greensock DrawSVG demo"/>
<svg id="superSpin" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1800 1200">
  <title>DrawSVG Wrap Around Subject</title>

<g id="swirl" mask="url(#masterMask)" stroke-dasharray="0 0" stroke-linecap="square"> 
 
  <path id="mainPath" d="M267,1133c173.89,63.31,430.15,48.86,613,20.55,21.81-3.38,45.38-12.45,59.5-29.41,21.67-26,8.78-68.4-18-89.18s-62.24-20.51-95.95-23.81c-133.41-13.08-267.9-1.17-401.65,7.77-13.85.93-28.15,2.09-40.43,8.57s-22.1,19.7-20.22,33.45c3.07,22.48,31.31,30.12,53.91,32.1a1553.29,1553.29,0,0,0,323.72-5.5c34.47-4.21,110.05-11.55,144.74-30.76,30.38-16.82,48-57,36.4-89.76-11.75-33.24-48.83-49.36-82.74-59-132.47-37.67-322.72-31.67-452.27,15.07-9.23,3.33-18.72,7.09-25.42,14.25s-9.72,18.73-4.37,26.95,16.54,10.11,26.37,11.05a1154.74,1154.74,0,0,0,320.91-14.27c30.15-5.62,87.83-14.75,113.46-31.6s45.55-45.39,44.21-76c-1.25-28.69-20.91-54.15-45.33-69.25s-80.17-19.43-108.51-24.09a865.87,865.87,0,0,0-337.23,11.38c-13.82,3.24-28,7-39.24,15.67s-19,23.38-15.39,37.11c5.47,20.77,31.22,27.5,52.62,29.47C502.81,866,713.37,834,835.88,779.22c51.34-23,65.38-78.47,42.57-105.71-12-14.33-30.34-25.11-60.78-30.51-64.39-11.43-151.38-2.89-171.62-2.36l-241.28,6.3C360.44,648.11,308,641.3,311,679.3c6,28,85,22.37,136.48,5.29,20.7-6.87,56.3-29,63.52-49.59,10.62-30.27-14.3-55.87-44-68-45.27-18.48-157.05-2-160,33-2.05,33,77.64,20.28,116.24,16.1s77.27-35.27,75.32-74.06c-1.68-33.49-32.9-59.51-65.67-66.63s-66.75.26-99.47,7.63c-19.8,4.46-44.41,14.86-43.24,35.13,0.65,11.2,10.1,20.34,20.68,24.09s22.12,3.19,33.32,2.45c34.11-2.24,84-6.27,112.82-24.71s33.94-55.57,21.64-87.46c-8.27-21.45-20.57-44.1-42.64-50.54s-57.6-7.43-80-5-48.53,17.8-48.6,40.21c0,12.47,10.53,23,22.34,27s24.66,2.91,37.07,1.79c22.34-2,45.13-4.16,65.7-13.11s38.92-26.07,43.36-48.06c6.11-30.19-16.06-60.37-43.78-73.81s-59.68-14.06-90.48-14.42c-11.52-.13-23.49-0.18-33.93,4.69s-18.83,16.19-16.43,27.45c3.44,16.14,23.93,20.73,40.39,21.94,34.62,2.54,70.84,4.52,102.59-9.51s56.9-49.44,47.33-82.81c-6.28-21.89-25.91-37.93-47.28-45.81s-44.56-8.9-67.32-9.83c-11.7-.48-23.83-0.88-34.66,3.57s-20,15.22-18.68,26.86c1.82,16.09,20.7,23.73,36.72,26,72.18,10.44,149-22.49,191.14-82" fill="none" stroke="#f0f" stroke-miterlimit="10" stroke-width="10"/>
  
  <path id="mainPathMiddle" d="M267,1133c173.89,63.31,430.15,48.86,613,20.55,21.81-3.38,45.38-12.45,59.5-29.41,21.67-26,8.78-68.4-18-89.18s-62.24-20.51-95.95-23.81c-133.41-13.08-267.9-1.17-401.65,7.77-13.85.93-28.15,2.09-40.43,8.57s-22.1,19.7-20.22,33.45c3.07,22.48,31.31,30.12,53.91,32.1a1553.29,1553.29,0,0,0,323.72-5.5c34.47-4.21,110.05-11.55,144.74-30.76,30.38-16.82,48-57,36.4-89.76-11.75-33.24-48.83-49.36-82.74-59-132.47-37.67-322.72-31.67-452.27,15.07-9.23,3.33-18.72,7.09-25.42,14.25s-9.72,18.73-4.37,26.95,16.54,10.11,26.37,11.05a1154.74,1154.74,0,0,0,320.91-14.27c30.15-5.62,87.83-14.75,113.46-31.6s45.55-45.39,44.21-76c-1.25-28.69-20.91-54.15-45.33-69.25s-80.17-19.43-108.51-24.09a865.87,865.87,0,0,0-337.23,11.38c-13.82,3.24-28,7-39.24,15.67s-19,23.38-15.39,37.11c5.47,20.77,31.22,27.5,52.62,29.47C502.81,866,713.37,834,835.88,779.22c51.34-23,65.38-78.47,42.57-105.71-12-14.33-30.34-25.11-60.78-30.51-64.39-11.43-151.38-2.89-171.62-2.36l-241.28,6.3C360.44,648.11,308,641.3,311,679.3c6,28,85,22.37,136.48,5.29,20.7-6.87,56.3-29,63.52-49.59,10.62-30.27-14.3-55.87-44-68-45.27-18.48-157.05-2-160,33-2.05,33,77.64,20.28,116.24,16.1s77.27-35.27,75.32-74.06c-1.68-33.49-32.9-59.51-65.67-66.63s-66.75.26-99.47,7.63c-19.8,4.46-44.41,14.86-43.24,35.13,0.65,11.2,10.1,20.34,20.68,24.09s22.12,3.19,33.32,2.45c34.11-2.24,84-6.27,112.82-24.71s33.94-55.57,21.64-87.46c-8.27-21.45-20.57-44.1-42.64-50.54s-57.6-7.43-80-5-48.53,17.8-48.6,40.21c0,12.47,10.53,23,22.34,27s24.66,2.91,37.07,1.79c22.34-2,45.13-4.16,65.7-13.11s38.92-26.07,43.36-48.06c6.11-30.19-16.06-60.37-43.78-73.81s-59.68-14.06-90.48-14.42c-11.52-.13-23.49-0.18-33.93,4.69s-18.83,16.19-16.43,27.45c3.44,16.14,23.93,20.73,40.39,21.94,34.62,2.54,70.84,4.52,102.59-9.51s56.9-49.44,47.33-82.81c-6.28-21.89-25.91-37.93-47.28-45.81s-44.56-8.9-67.32-9.83c-11.7-.48-23.83-0.88-34.66,3.57s-20,15.22-18.68,26.86c1.82,16.09,20.7,23.73,36.72,26,72.18,10.44,149-22.49,191.14-82" fill="none" stroke="#fff" opacity="0.4" stroke-miterlimit="10" stroke-width="6"/>  

  <path id="mainPathHighlight" d="M267,1133c173.89,63.31,430.15,48.86,613,20.55,21.81-3.38,45.38-12.45,59.5-29.41,21.67-26,8.78-68.4-18-89.18s-62.24-20.51-95.95-23.81c-133.41-13.08-267.9-1.17-401.65,7.77-13.85.93-28.15,2.09-40.43,8.57s-22.1,19.7-20.22,33.45c3.07,22.48,31.31,30.12,53.91,32.1a1553.29,1553.29,0,0,0,323.72-5.5c34.47-4.21,110.05-11.55,144.74-30.76,30.38-16.82,48-57,36.4-89.76-11.75-33.24-48.83-49.36-82.74-59-132.47-37.67-322.72-31.67-452.27,15.07-9.23,3.33-18.72,7.09-25.42,14.25s-9.72,18.73-4.37,26.95,16.54,10.11,26.37,11.05a1154.74,1154.74,0,0,0,320.91-14.27c30.15-5.62,87.83-14.75,113.46-31.6s45.55-45.39,44.21-76c-1.25-28.69-20.91-54.15-45.33-69.25s-80.17-19.43-108.51-24.09a865.87,865.87,0,0,0-337.23,11.38c-13.82,3.24-28,7-39.24,15.67s-19,23.38-15.39,37.11c5.47,20.77,31.22,27.5,52.62,29.47C502.81,866,713.37,834,835.88,779.22c51.34-23,65.38-78.47,42.57-105.71-12-14.33-30.34-25.11-60.78-30.51-64.39-11.43-151.38-2.89-171.62-2.36l-241.28,6.3C360.44,648.11,308,641.3,311,679.3c6,28,85,22.37,136.48,5.29,20.7-6.87,56.3-29,63.52-49.59,10.62-30.27-14.3-55.87-44-68-45.27-18.48-157.05-2-160,33-2.05,33,77.64,20.28,116.24,16.1s77.27-35.27,75.32-74.06c-1.68-33.49-32.9-59.51-65.67-66.63s-66.75.26-99.47,7.63c-19.8,4.46-44.41,14.86-43.24,35.13,0.65,11.2,10.1,20.34,20.68,24.09s22.12,3.19,33.32,2.45c34.11-2.24,84-6.27,112.82-24.71s33.94-55.57,21.64-87.46c-8.27-21.45-20.57-44.1-42.64-50.54s-57.6-7.43-80-5-48.53,17.8-48.6,40.21c0,12.47,10.53,23,22.34,27s24.66,2.91,37.07,1.79c22.34-2,45.13-4.16,65.7-13.11s38.92-26.07,43.36-48.06c6.11-30.19-16.06-60.37-43.78-73.81s-59.68-14.06-90.48-14.42c-11.52-.13-23.49-0.18-33.93,4.69s-18.83,16.19-16.43,27.45c3.44,16.14,23.93,20.73,40.39,21.94,34.62,2.54,70.84,4.52,102.59-9.51s56.9-49.44,47.33-82.81c-6.28-21.89-25.91-37.93-47.28-45.81s-44.56-8.9-67.32-9.83c-11.7-.48-23.83-0.88-34.66,3.57s-20,15.22-18.68,26.86c1.82,16.09,20.7,23.73,36.72,26,72.18,10.44,149-22.49,191.14-82" fill="none" stroke="#fff" opacity="0.6" stroke-miterlimit="10" stroke-width="2"/>  
  
  </g>
  <mask id="masterMask">
  <path id="maskPath" d="M267,1133c173.89,63.31,430.15,48.86,613,20.55,21.81-3.38,45.38-12.45,59.5-29.41,21.67-26,8.78-68.4-18-89.18s-62.24-20.51-95.95-23.81c-133.41-13.08-267.9-1.17-401.65,7.77-13.85.93-28.15,2.09-40.43,8.57s-22.1,19.7-20.22,33.45c3.07,22.48,31.31,30.12,53.91,32.1a1553.29,1553.29,0,0,0,323.72-5.5c34.47-4.21,110.05-11.55,144.74-30.76,30.38-16.82,48-57,36.4-89.76-11.75-33.24-48.83-49.36-82.74-59-132.47-37.67-322.72-31.67-452.27,15.07-9.23,3.33-18.72,7.09-25.42,14.25s-9.72,18.73-4.37,26.95,16.54,10.11,26.37,11.05a1154.74,1154.74,0,0,0,320.91-14.27c30.15-5.62,87.83-14.75,113.46-31.6s45.55-45.39,44.21-76c-1.25-28.69-20.91-54.15-45.33-69.25s-80.17-19.43-108.51-24.09a865.87,865.87,0,0,0-337.23,11.38c-13.82,3.24-28,7-39.24,15.67s-19,23.38-15.39,37.11c5.47,20.77,31.22,27.5,52.62,29.47C502.81,866,713.37,834,835.88,779.22c51.34-23,65.38-78.47,42.57-105.71-12-14.33-30.34-25.11-60.78-30.51-64.39-11.43-151.38-2.89-171.62-2.36l-241.28,6.3C360.44,648.11,308,641.3,311,679.3c6,28,85,22.37,136.48,5.29,20.7-6.87,56.3-29,63.52-49.59,10.62-30.27-14.3-55.87-44-68-45.27-18.48-157.05-2-160,33-2.05,33,77.64,20.28,116.24,16.1s77.27-35.27,75.32-74.06c-1.68-33.49-32.9-59.51-65.67-66.63s-66.75.26-99.47,7.63c-19.8,4.46-44.41,14.86-43.24,35.13,0.65,11.2,10.1,20.34,20.68,24.09s22.12,3.19,33.32,2.45c34.11-2.24,84-6.27,112.82-24.71s33.94-55.57,21.64-87.46c-8.27-21.45-20.57-44.1-42.64-50.54s-57.6-7.43-80-5-48.53,17.8-48.6,40.21c0,12.47,10.53,23,22.34,27s24.66,2.91,37.07,1.79c22.34-2,45.13-4.16,65.7-13.11s38.92-26.07,43.36-48.06c6.11-30.19-16.06-60.37-43.78-73.81s-59.68-14.06-90.48-14.42c-11.52-.13-23.49-0.18-33.93,4.69s-18.83,16.19-16.43,27.45c3.44,16.14,23.93,20.73,40.39,21.94,34.62,2.54,70.84,4.52,102.59-9.51s56.9-49.44,47.33-82.81c-6.28-21.89-25.91-37.93-47.28-45.81s-44.56-8.9-67.32-9.83c-11.7-.48-23.83-0.88-34.66,3.57s-20,15.22-18.68,26.86c1.82,16.09,20.7,23.73,36.72,26,72.18,10.44,149-22.49,191.14-82" fill="none" stroke="#fff" stroke-miterlimit="10" stroke-width="10"/>
  <polygon id="bodyMask1" points="421 1026 421 1021 419 1011.33 556.67 1001 675.67 997.67 771.67 999.33 849.17 1004.67 869 1009.33 869 1022 690.67 1021.33 528.33 1024.33 421 1026"/>
  <polygon id="bodyMask2" points="400.8 927 400.95 919.92 397.06 910.54 465.67 891.67 530.33 880.67 648 875 720 879 729.83 880.67 735 884 735 892 736.33 899.17 585.33 901 428.33 923.67 400.8 927"/>
  <polygon id="bodyMask3" points="376.5 780.17 371.25 773.75 366.96 769.71 359.95 765.29 424.37 749.34 498 742.21 498 750.95 497 755.72 498.48 759.4 376.5 780.17"/>
  <polygon id="BodyMask4" points="507 758 507 751 505 742.33 575 740 654 742.33 731.83 752.67 793 767 793 783 660 764 575.67 756.67 507 758"/>
  <polygon id="BodyMask5" points="521.67 652 524.99 643.97 529 635.92 649 629 748 629 774 631.33 779.33 646.33 673 645.58 578 652 521.67 652"/>
  <polygon id="BodyMask6" points="352.67 655 356.17 640.52 471.3 637.33 471.81 642.09 473.39 646.16 474.62 651.96 352.67 655"/>
  <polygon id="BodyMask7" points="353 560 353 566 352.67 573.75 373.38 569.25 405.75 566.25 429.5 565.75 447.25 568.25 462.06 571.45 460.25 566.88 459.63 561.75 459.12 558.77 443.13 553.88 404.5 552.5 356.13 558.13 353 560"/>
  <polygon id="BodyMask8" points="347 486 347 480 346.38 474.38 372.88 469.38 404.5 465.25 421.63 466.63 434 468.75 446.63 473.38 451.88 474.63 451.63 480.75 452.75 487.75 447.25 489.25 403.25 479.63 347 486"/>
  <polygon id="BodyMask9" points="351.25 383.5 349.75 379 349 372.5 349 370 385 369.38 408 370.75 426 373.63 426 385 388.75 381.38 351.25 383.5"/>
  <polygon id="BodyMask10" points="334.19 302.38 330.63 290 381 290 422.38 298.75 438.5 307.63 433.47 319.32 385.38 304.5 334.19 302.38"/>
  <polygon id="BodyMask11" points="359.06 209.5 366.41 201.5 367.39 196.56 391.51 197.66 410.25 199.14 418.94 201.63 418.44 202.81 419.81 204.13 425.5 206.13 431.25 208.25 433.31 211.5 435 214.25 435 218 436.31 221 392.13 211.5 359.06 209.5"/>
  </mask>

  <g id="gsLogo">
    <path d="M1030.51,477.8c15.06,0,29,5.38,29,9.5,0,2.51-3.23,8.78-5.2,8.78-1.61,0-9-6.63-23.66-6.63-26.89,0-35.68,15.6-35.68,42.13,0,23.31,7,43,34.06,43,7.89,0,15.6-.9,19.54-2V542h-17.75c-2.15,0-3-1.43-3-4.48V535c0-3.23.9-4.48,3-4.48h26.71c3.23,0,4.48,1.43,4.48,4.48v40.34c0,8.6-16.49,10.94-33.88,10.94-30.3,0-47-17-47-53.25C981.21,495,998.78,477.8,1030.51,477.8Z" transform="translate(0 0)" fill="#fff"/>
    <path d="M1077.84,528.89a89.05,89.05,0,0,0-1.79-19.18c0-2.87,6.27-3.58,8.25-3.58,3.59,0,4.48,6.1,5.38,10,5.2-7.35,11.3-11.47,17.57-11.47,5.92,0,8.78,2.51,8.78,5.92,0,2.87-1.26,8.25-3,8.25-2,0-3.23-1.61-8.43-1.61-7.89,0-14,9.32-14,9.32v55.76c0,2.15-1.79,3.41-6.1,3.41h-0.54c-4.3,0-6.1-1.26-6.1-3.41V528.89h0Z" transform="translate(0 0)" fill="#fff"/>
    <path d="M1157.62,504.69c20.8,0,31.37,13.8,31.37,39.62,0,1.79-3.23,6.27-5,6.27h-48c1.26,16.85,8.43,24.56,23.49,24.56,13.27,0,20.62-6.45,22.23-6.45,2.15,0,5.38,5.92,5.38,7.53,0,3.58-12,9.68-27.43,9.68-25.28,0-37.29-12.91-37.29-40.16C1122.12,519,1134.31,504.69,1157.62,504.69Zm17.75,35.14c0-16-6.1-24-18.29-24-13.27,0-20.26,8.07-21.33,24h39.62Z" transform="translate(0 0)" fill="#fff"/>
    <path d="M1236.5,504.69c20.8,0,31.37,13.8,31.37,39.62,0,1.79-3.23,6.27-5,6.27h-48c1.26,16.85,8.43,24.56,23.49,24.56,13.27,0,20.62-6.45,22.23-6.45,2.15,0,5.38,5.92,5.38,7.53,0,3.58-12,9.68-27.43,9.68-25.28,0-37.29-12.91-37.29-40.16C1201.18,519,1213.19,504.69,1236.5,504.69Zm17.93,35.14c0-16-6.1-24-18.29-24-13.27,0-20.26,8.07-21.33,24h39.62Z" transform="translate(0 0)" fill="#fff"/>
    <path d="M1281.68,528.89a89.05,89.05,0,0,0-1.79-19.18c0-2.87,6.27-3.58,8.25-3.58,3.58,0,4.48,6.1,5.38,10,6.45-7.17,15.24-11.47,23.66-11.47,15.6,0,24.74,9.32,24.74,24.56V582c0,2.15-1.79,3.41-6.1,3.41h-0.54c-4.3,0-6.1-1.26-6.1-3.41V530.33c0-9.32-5.56-14.7-15.6-14.7-6.81,0-14.16,4.12-19.18,10.58V582c0,2.15-1.79,3.41-6.1,3.41h-0.54c-4.3,0-6.1-1.26-6.1-3.41V528.89h0Z" transform="translate(0 0)" fill="#fff"/>
    <path d="M1369.17,559.55c2.69,0,10.22,7,22.41,7,6.45,0,14.34-2,14.34-11.12,0-17.93-43.92-10.94-43.92-46.79,0-22.41,18.29-31.19,36-31.19,16.14,0,27.43,5.56,27.43,10.58,0,4.12-4.66,13.27-8.43,13.27-2,0-6.63-3.76-16.85-3.76-11.83,0-14.16,5.56-14.16,9,0,17.39,43.92,10.4,43.92,46.07,0,25.28-17.75,33.7-34.42,33.7-23.13,0-35.68-8.25-35.68-13.45C1359.84,568.33,1365.94,559.55,1369.17,559.55Z" transform="translate(0 0)" fill="#88ce02"/>
    <path d="M1475.83,504.51c24.2,0,36.75,14.52,36.75,40.88,0,26.53-12.55,41.05-36.75,41.05s-36.93-14.52-36.93-41.05S1451.63,504.51,1475.83,504.51Zm14,40.88c0-15.24-4.3-23.13-14-23.13s-14.16,7.89-14.16,23.13,4.48,23.31,14.16,23.31S1489.82,560.62,1489.82,545.39Z" transform="translate(0 0)" fill="#88ce02"/>
    <path d="M1561.53,504.51c10.76,0,25.28,3.59,25.28,10.58,0,2.87-5.56,11.65-8.07,11.65a11.42,11.42,0,0,1-2.69-1.08,26.49,26.49,0,0,0-13.27-3.41c-12.19,0-17.21,7.53-17.21,23.13s4.66,23.31,16.31,23.31a31.84,31.84,0,0,0,14.88-3.58,9,9,0,0,1,2.69-.9c3.41,0,7.89,8.61,7.89,11.47,0,8.6-21.69,10.58-26.53,10.58-26,0-38.37-13.27-38.37-40.52C1522.45,518.85,1534.28,504.51,1561.53,504.51Z" transform="translate(0 0)" fill="#88ce02"/>
    <path d="M1598.28,475.47c0-3.23,2.69-4.84,9.14-4.84h4.3c6.45,0,9.14,1.61,9.14,4.84V535.7l0.54,0.18,18.46-27.61c1.79-2.51,4.84-2.87,9.32-2.87h5.56c5.74,0,8.61.9,8.61,2.33a6.37,6.37,0,0,1-1.43,3l-21.15,30.12,24.74,39.26c0.72,1.43,1.26,2.33,1.26,3.23,0,1.43-2.69,2.33-8.6,2.33h-6.45c-4.48,0-7.71-.54-9.14-2.87l-21.15-35-0.54.18v32.81c0,3.23-2.69,4.84-9.14,4.84h-4.3c-6.45,0-9.14-1.61-9.14-4.84V475.47h0Z" transform="translate(0 0)" fill="#88ce02"/>
  </g>
  <text transform="translate(981.21 316.66)" font-size="101" fill="#fff" font-family="Oswald">Who's ready to get<tspan x="0" y="121.2">wrapped up in the</tspan></text>
  <text transform="translate(981.21 724.43)" font-size="111" fill="#fff" font-family="Oswald">DrawSVG plugin?</text>



</svg>
</div>
<div id="buttonWrap">

<div id="colorControl">
<h3>Stroke Color</h3>
<button data-neon = "#f0f">Pink</button>
<button data-neon = "#19b828">Green</button>
<button data-neon = "#1fa3e5">Blue</button>
<button data-neon = "#cc8506">Orange</button>
<button data-neon = "#e50d0d">Red</button>
<button data-neon = "#9805e1">Purple</button>
<button data-neon = "#333">Grayscale</button>
<button data-neon = "#fff">White</button>
</div>

<div id="dashControl">
<h3>Dash-Array</h3>
<button data-thedash = "12 0" data-thecap = "square">Solid</button>
<button data-thedash = "12 16" data-thecap = "square">Dashes</button>
<button data-thedash = "0 16" data-thecap = "round">Dotted</button>
</div>

<div id="speedControl">
<h3>Timeline Speed</h3>
<button data-newspeed = "0.25">Slow .25X</button>
<button data-newspeed = "1">Regular 1X</button>
<button data-newspeed = "3">Sonic 3X</button>
</div>

</div>
              
            
!

CSS

              
                @import url(https://fonts.googleapis.com/css?family=Oswald);

svg {
	width:100%;
	height:100%;
	position: absolute;
	left:0;
	top:0;
}

#buttonWrap, #container {
	width:100%;
	max-width:900px;
	min-width: 460px;
	position: relative;
	display: inline-block;
	float: left;
}

#buttonWrap {
	text-align: center;
	background: #262626;
	padding: 10px 0;
	color: white;
	clear:both;
}

#container img {
	width: auto;
	height:auto;
	max-width:100%;
}

button {
	padding:5px;
	cursor: pointer;
}

h3 {
	  font-family:'Oswald';
	  line-height: 1;
	  margin: 0 0 10px ;
	  font-size: 1.2em;
	  color:#C9C9C9;		
}

#dashControl, #speedControl {
	width:50%;
	float: left;
}

#colorControl {
	float: left;
	width:100%;
	margin-bottom: 10px;
}

              
            
!

JS

              
                var twirlAnim = new TimelineMax({repeat:-1});

twirlAnim
.fromTo("#maskPath", 5, {drawSVG:"0% 0%"}, {drawSVG:"0% 100% ", ease:Power2.easeInOut })
.fromTo("#maskPath", 1.5, {drawSVG:"0% 100%"}, {drawSVG:"100% 100% ", ease:Power4.easeInOut },"+=.5")


$("#colorControl button").click(function() {
var newColor = this.getAttribute("data-neon");
TweenMax.to("#mainPath", 0.8, {stroke:newColor})
})

$("#dashControl button").click(function() {
var newDash = this.getAttribute("data-thedash");
var newCap = this.getAttribute("data-thecap");
TweenMax.to("#swirl", 0.5, {strokeDasharray:newDash, strokeLinecap:newCap})
})

$("#speedControl button").click(function() {
var newSpeed = this.getAttribute("data-newspeed");
TweenMax.to(twirlAnim, 0.75, {timeScale:newSpeed})
})
              
            
!
999px

Console