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

              
                <div class="truckWrap">
<svg id="truck" viewBox="0 0 918.8 329.2">
<!--paintjob 1 clips-->
  <clipPath id="truckClip">
    <path d="M9.7,133.6l7-8c0,0,14-9.5,19-12c20.6-10.3,45-17,89-24s98-8,98-8l77-67c0,0,5.8-5.7,12-7
		c4.8-1,45.2-6.2,103.2-7.2s86.9,0.3,93.1,2.3s13.1,26.6,16.1,40.6c0,0,5.9,26.2,6.7,35c0.3,3.7,2.2,16,2.2,16l6.7,4.4l361-6.1
		c0,0,3,6,3,14s-5,63-8,71s-10,26-10,26s-69.4-4-72.2-1c-2.8,3-21.8,3-21.8,3h-19.5c0,0,1.5-29-17.5-39s-58-8-58-8s-34-2-47,9
		s-35,51-35,51l-76,3c0,0-324,6-328,3c-12.6-9.4-11-42-32-54s-98-16-113-2s-15,14-15,14l-41-3V133.6z"/>
  </clipPath>
  <clipPath id="pb1Front1">
     <polygon points="146,123.7 113.1,125.7 80.6,162 121.6,159.8 	"/>
  </clipPath>
  <clipPath id="pb1Front2">
    <polygon points="159.7,164.2 186.5,124.8 386.2,121 388,118.1 148.6,123 122.5,160.2 141.7,161.4 	"/>
  </clipPath>
  <clipPath id="pb1Front3">
    <path d="M160.9,164.8l26.4-38.4l199-4l-0.1,2.4l-161.8,3.6l-33.8,54.2c0,0-10-11.3-15.2-13.4
		c-5.2-2.1-13.5-4.3-13.5-4.3"/>
  </clipPath>
  <clipPath id="pb1Back1">
    <polygon points="721.7,122.9 688.8,124.9 656.9,163.4 697.2,158.9 	"/>
  </clipPath>
  <clipPath id="pb1Back2">
    <polygon points="735.3,163.4 762.1,123.9 891.8,121.1 893.7,118.3 724.2,122.1 698.2,159.4 716.8,160.4 	"/>
  </clipPath>
  <clipPath id="pb1Back3">
    <path d="M736.5,164l26.4-38.4l129-3l-0.1,2.4l-91.8,2.6l-33.8,54.2c0,0-10-11.3-15.2-13.4s-13.5-4.3-13.5-4.3" />
  </clipPath>
  <!--paintjob 2 clips-->
  <clipPath id="pb2Hood">
    <path d="M176.1,169.1l64.5,0.6l41.2-63.7l-32.5-1.9L234,98.6c0,0,45.2-42.3,63.5-62.9
		c24.6-27.6,35.1-24.3,106.6-28.4c25.2-1.5,84.6,0.5,108.6,0.6c-1.6-2.9-3.2-4.9-4.8-5.4c-6.2-2-35.1-3.3-93.1-2.3
		s-98.4,6.2-103.2,7.2c-6.2,1.3-12,7-12,7l-77,67c0,0-54,1-98,8s-68.4,13.7-89,24c-5,2.5-19,12-19,12l-7,8h0v46l41,3c0,0,0,0,15-14
		C80.1,154.9,152,158.1,176.1,169.1z"/>
  </clipPath>
  <clipPath id="pb2TruckBody">
    <path d="M9.7,171.7l12.4,0l32.7,0.2c0,0,11.5-12.6,21.7-14.4c10.2-1.7,41-3.5,57.1-2.2
		c16.1,1.3,39.9,5.5,47.5,9.8s13.4,6.7,13.4,6.7l99.9,0l51.4-67.7l-71.8,1.3l-12.4-0.7l-12.4-0.7L234,98.6l76-72.7
		c0,0,31.8-18.1,71.1-18c37.3,0.1,103.3,0.9,103.3,0.9l29.1,0.6c0,0,3.9,8.1,6.5,17.5s10.9,51.4,10.9,51.4l2.2,16l6.7,4.4l361-6.1
		c0,0,2.4,7.1,2.7,9.6c0.7,5.8-1,23.5-1,23.5s-2.6,32.2-4.8,42.7c-1,4.9-5.9,21.8-5.9,21.8l-6,13.4c0,0-48.2-2.4-60.9-1.8
		c-8.9,0.5-16.6,2.9-16.6,2.9l-36,0.9c0,0,2.6-29.7-17.5-39c-17.5-8.1-42.1-8.2-58-8s-40,1.2-47,9c-8.1,9-35,51-35,51l-66.9,2.6
		L401,223.8c0,0-118.4,1.5-157.8,1.4c-8.1,0-32.5-0.6-32.5-0.6s-6.3-3.1-11.9-23.3c-4-14.3-11.8-31.1-34.8-36.7
		c-14.8-3.6-82.5-7.7-94.3,1.6c-16,12.6-19.1,16.4-19.1,16.4l-41-3L9.7,171.7z"/>
  </clipPath>
  <clipPath id="pb2Front1">
    <polygon points="274,105.5 249.2,104.1 154.5,162.3 228,161.8 	"/>
  </clipPath>
  <clipPath id="pb2Front2">
    <polygon points="173.5,167.7 257.3,167.6 308.4,104.7 274,105.5 228,161.8 154.5,162.3 164,164.6 ">
  </clipPath>
  <clipPath id="pb2Front2b">
    <polygon class="st28" points="76.5,162.7 71.1,164.7 65.7,167.6 23.5,167.6 25.4,163.3 	"/>
  </clipPath>
  <clipPath id="pb2Front3">
    <path d="M173.5,167.7l83.8-0.1l51-63l37.4-0.4l-51.4,67.7l-81.8-0.1l-31.8,0.1L173.5,167.7"/>
  </clipPath>
  <clipPath id="pb2Front3b">
    <polygon points="23.5,167.6 22.1,171.7 62.3,171.7 65.7,167.6 	"/>
  </clipPath>
  <clipPath id="pb2FrontBlueClip">
    <polygon points="9.7,171.7 9.6,179.4 50.6,182.4 62.3,171.7 	"/>
  </clipPath>
<!--paintjob 3 clips-->
<clipPath id="pb3Front1">
	<path d="M25.3,141.5c0,0,57.8-13.3,116.8-18.8c55.2-5.2,153-17.3,202.6-2c26.3,8.1,40.5,41,40.5,41
		l-17.6,20.6c0,0-8-41.5-52.5-51.5c-30.5-6.8-122.4-3.3-177.6,0c-43.4,2.6-111.2,13.4-111.2,13.4L25.3,141.5z"/>
</clipPath>
<clipPath id="pb3Front2">
	<path d="M26.3,144.3c0,0,47.2-8,106.2-13.1c58.6-5,147.8-13.6,191.9,2.4c34.5,12.5,42.8,47.1,42.8,47.1
		l-14.6,16.6c0,0-10.6-34.9-54.5-47.5c-38.2-10.9-97.2-14.5-162.4-14.5c-43.4,0-109.5,11-109.5,11L26.3,144.3z"/>
</clipPath>
<clipPath id="pb3Back1">
	<path d="M346.7,212.9c0,0-0.6-33.7,53.1-63s185.9-36.2,248.8-37.4c57.5-1.1,230.1,0.6,230.1,0.6l-7.5,9.2
		l-191.2-2.2c0,0-150.7-1.7-227.8,27.5s-70.1,65.2-70.1,65.2H346.7z"/>
</clipPath>
<clipPath id="pb3Back2">
	<path d="M411.5,212.9h-33.3c0,0,1.2-45.1,93.4-71.4c60.1-17.2,136.1-21.1,216.7-21.1
		c45.8,0,183,2.1,183,2.1l-6,7.1c0,0-152.4-2.8-203.6-1.8c-93.2,1.9-167.9,15.2-202.3,34.8C424.8,182.4,411.5,212.9,411.5,212.9z"/>
</clipPath>
<!--bg layer-->
<g id="BG">
	<path class="st0" d="M208,256.5c0,0,10.3-0.9,18.3-6.2s21.7-15.1,25.2-24.8s-9.2-80.2-37.8-87.2S78,146.5,78,146.5
		s-24.5,6.4-25.5,20.8c-1,14.3-17.1,47.7-17.1,47.7l6.4,4.9c0,0,8.5-7.6,10.7-6.6c2.2,1,0,6.6,0,6.6h7.5l5.3-9.4l6,9.4l84.5-9.4
		L208,256.5z"/>
	<polygon class="st0" points="296.2,219.9 302.8,235 315.5,235 328.1,219.9 	"/>
	<polygon class="st0" points="368.7,222.8 380,230.6 427.2,230.6 439.5,215 	"/>
	<path class="st0" d="M573.5,211.5l7.3,15.9h8l5.3-3c0,0,5.3,6.5,11.3,10.5c6,4,22.6,8.5,22.6,8.5L745.8,215h20.4l26.3-10.4
		l-6.4-42.4L679.3,137L573.5,211.5z"/>
	<path class="st1" d="M9.7,133.6l7-8c0,0,14-9.5,19-12c20.6-10.3,45-17,89-24s98-8,98-8l77-67c0,0,5.8-5.7,12-7
		c4.8-1,45.2-6.2,103.2-7.2s86.9,0.3,93.1,2.3s13.1,26.6,16.1,40.6c0,0,5.9,26.2,6.7,35c0.3,3.7,2.2,16,2.2,16l6.7,4.4l361-6.1
		c0,0,3,6,3,14s-5,63-8,71s-10,26-10,26s-69.4-4-72.2-1c-2.8,3-21.8,3-21.8,3h-19.5c0,0,1.5-29-17.5-39s-58-8-58-8s-34-2-47,9
		s-35,51-35,51l-76,3c0,0-324,6-328,3c-12.6-9.4-11-42-32-54s-98-16-113-2s-15,14-15,14l-41-3V133.6z"/>
</g>
<!--paint layer-->
<g id="paintjob1">
  <line id="truckbg" pathLength="1" class="path" clip-path="url(#truckClip)" stroke="#e2ceaa" stroke-width="900" stroke-miterlimit="10" x1="-53.8" y1="-5.4" x2="1120.7" y2="379.1"/>
  <line id="pb2Hood" pathLength="1" clip-path="url(#pb2Hood)" stroke="#FFFFFF" stroke-width="900" stroke-miterlimit="10" fill="none" x1="23.5" y1="-27.1" x2="506.7" y2="90.2"/>
	<line pathLength="1" clip-path="url(#pb1Front1)" class="path" id="pb1Front1Path" fill="none" stroke="#705c4f" stroke-width="37" stroke-miterlimit="10" x1="86.3" y1="175.1" x2="143.1" y2="110"/>
  <polyline pathLength="1" clip-path="url(#pb1Front2)" class="path" id="pb1Front2Path" fill="none" stroke="#aa7659" stroke-width="37" stroke-miterlimit="10" points="135,174 162.5,126.8 395.8,121"/>
  <polyline pathLength="1" clip-path="url(#pb1Front3)" class="path" id="pb1Front3Path" fill="none" stroke="#c6ab9d" stroke-width="37" stroke-miterlimit="10" points="173,175.1 204.2,130.8 395.8,126.8 	"/>
  <line pathLength="1" clip-path="url(#pb1Back1)" class="path back" id="pb1Back1Path" fill="none" stroke="#705c4f" stroke-width="37" stroke-miterlimit="10" class="st3" x1="668.1" y1="171.5" x2="724.9" y2="106.3"/>
  <polyline pathLength="1" clip-path="url(#pb1Back2)" class="path back" id="pb2Back2Path" fill="none" stroke="#aa7659" stroke-width="37" stroke-miterlimit="10" points="712,170.3 744.2,123.1 894.5,119.3"/>
  <polyline pathLength="1" clip-path="url(#pb1Back3)" class="path back" id="pb2Back3Path" fill="none" stroke="#c6ab9d" stroke-width="37" stroke-miterlimit="10" points="746.6,177.5 782.9,127.2 894.5,125.1"/>
  </g>
<g id="paintjob2">
	<line id="pb2Front1Path" pathLength="1" clip-path="url(#pb2Front1)" stroke-width="37" stroke-miterlimit="10" fill="none" x1="188.2" y1="176" x2="272" y2="97.3"/>
	<polyline id="pb2Front2Path" pathLength="1" clip-path="url(#pb2Front2)" stroke-width="37" stroke-miterlimit="10" fill="none" points="12.2,167.8 241.7,164.6 300,91.9 	"/>
    <line id="pb2Front2Pathb" pathLength="1" clip-path="url(#pb2Front2b)" stroke="#f2d31c" stroke-width="37" stroke-miterlimit="10" fill="none" x1="18.3" y1="164.6" x2="71.1" y2="164.7"/>
	<polyline id="pb2Front3Path" pathLength="1" clip-path="url(#pb2Front3)" stroke-width="37" stroke-miterlimit="10" fill="none" points="17.8,170.3 276.5,169.7 334.7,90.2 	"/>
    <line id="pb2Front3Pathb" pathLength="1" clip-path="url(#pb2Front3b)" stroke="#e88225" stroke-width="37" stroke-miterlimit="10" fill="none" x1="18.3" y1="164.6" x2="71.1" y2="164.7"/>
    <line id="pb2FrontBlue" pathLength="1" clip-path="url(#pb2FrontBlueClip)" stroke="#0a5a8f" stroke-width="37" stroke-miterlimit="10" fill="none" x1="5.2" y1="171.7" x2="62.3" y2="171.8"/>
</g>
<g id="paintjob3">
	<polyline id="pb3Front1Path" pathLength="1" clip-path="url(#pb3Front1)" stroke-width="37" stroke-miterlimit="10" fill="none" points="17.1,142.4 234.6,120.4 319.4,120.4 363.6,149.9 381.9,182.4 	"/>
	<polyline id="pb3Front2Path" pathLength="1" clip-path="url(#pb3Front2)" stroke-width="37" stroke-miterlimit="10" fill="none" points="22.4,146.4 155,133.1 270.9,133.1 333.6,153.4 363.6,191.7 	"/>
	<path id="pb3Back1Path" pathLength="1" clip-path="url(#pb3Back1)" stroke-width="37" stroke-miterlimit="10" fill="none" d="M363.6,219.8c0,0,2.1-55.6,74.8-76.7s440.4-29.9,440.4-29.9"/>
	<path id="pb3Back2Path" pathLength="1" clip-path="url(#pb3Back2)" stroke-width="37" stroke-miterlimit="10" fill="none" d="M388.9,219.8c0,0,20-46.8,70.5-68.1s419.4-20.9,419.4-20.9"/>
</g>
<!--top layer-->
<g id="TOP">
	<path class="st9" d="M415.7,16.7c0,0-69-3-86,6s-77,65-77,65v17.8c0,0,149.3-1.5,158-3.8c6.4-1.7,5.9-20.6,5.9-30.4
		C416.6,54.6,415.7,16.7,415.7,16.7z"/>
	<path class="st9" d="M438.7,23.7l5,79c0,0,1,5,2,7s5,3,5,3l51.3-1.2c0,0,2.7,0.2,3.7-1.8s1-5,1-5s-3-38-4-47s-7-36-7-36
		s-1.6-3.9-3-5c-1.4-1.1-5-2-5-2h-40c0,0-7.2,0.2-8.1,2.1C438.7,18.7,438.7,23.7,438.7,23.7z"/>
	<path class="st9" d="M307.8,9.4l1.1,5.3c0,0,0.2,1.4,0,3.2s-3.2,3.8-3.2,3.8s-37,31-40,35s-28,28-28,28s-3.3,2.9-5.1,4.2
		c-1.3,0.9-2.3,1.9-3.5,2.2c-0.3,0.1-4.3,1.3-5.3,0.6c0,0-0.3-1.7-0.9-5.6c-0.6-3.6-1.2-4.4-1.2-4.4l0,0l1.1,0l72.9-63.5
		c0,0,3.8-3.4,5.9-5C303.7,11.7,307.8,9.4,307.8,9.4z"/>
	<path class="st10" d="M250.7,87c-3,0.3-4,1.7-4,1.7s-0.9,2.2-1.5,4.8c-2.2,0.1-3.5,2.2-3.5,2.2s0,7,1,8c0.7,0.7,2.7,0,4-0.5
		c1,1.5,2,2.5,2,2.5s3,2,5,2s3-1.4,3-1.4V87.7C256.7,87.7,253.7,86.7,250.7,87z"/>
	<path class="st10" d="M414.3,118.1c0,0-24.7-0.9-26.4,0c-1.6,0.9-2,11.1-1.2,12.2c0.8,1.1,25.5,0.7,27.6,0S415.8,120.8,414.3,118.1
		z"/>
	<path class="st11" d="M409.8,123.5v7.4l6.8-0.5c0,0,2.2-3,1.5-6C417.4,121.4,409.8,123.5,409.8,123.5z"/>
	<path class="st12" d="M402.2,124.4h-15.9c0,0-0.7-4.9,1.8-6.2c2.4-1.3,28.6,0,28.6,0l1.5,6.2H402.2z"/>
	<path class="st13" d="M50.6,180.4l-47.7-3.5c0,0-2.4,0-2.9,1.8c-0.4,1.8,1.6,25.9,1.6,25.9s26.8,30.8,29.3,31.3s8.2,0,8.2,0
		s0.9-0.7,1.8-2.2c0.9-1.6-0.4-21.9,0-24.6c0.4-2.7,10.9-23.7,10.9-23.7L50.6,180.4z"/>
	<path class="st14" d="M644.1,176l-9.5,13.7c0,0-12.6,18.8-14,22.6c-1.3,3.8-4.5,8.6-4.5,8.6h-13.6H588c0,0,14.2-23.1,18.6-28.8
		s14.2-11.1,14.2-11.1L644.1,176z"/>
	<path class="st15" d="M785.3,205.7l18.6,18.2c0,0,7.8-0.4,9.8-2c2-1.6,2.2-5.1,2.2-5.1L805.4,205L785.3,205.7z"/>
	<path class="st13" d="M894.1,182l18.1,2l6.7,8l-2.2,9.8c0,0-4.2,7.8-6.7,9.5c-2.4,1.8-27,1.3-27,1.3l-1.1-9.1l3.9,0.2L894.1,182z"
		/>
	<path class="st16" d="M903.4,112.8c0,0-9.2,0.6-9.9,1.4s-4,46.7-3.8,47.6s8.6,1.5,8.6,1.5l3.4-30.4L903.4,112.8z"/>
	<path class="st15" d="M9.7,139.4c0,0,17.9-1.3,19.1,1.5c1,2.3-2,16.6-2,16.6L22.2,176H9.7V139.4z"/>
	<ellipse class="st17" cx="129.5" cy="257.5" rx="77.7" ry="71.6"/>
	<ellipse class="st12" cx="124" cy="264.5" rx="40.8" ry="39"/>
	<circle class="st13" cx="125.6" cy="263.5" r="36.9"/>
	<circle class="st15" cx="127.2" cy="261.2" r="34.7"/>
	<circle class="st13" cx="129.5" cy="259.7" r="13.7"/>
	<circle class="st18" cx="125.6" cy="263.5" r="8"/>
	<ellipse class="st17" cx="694.7" cy="242.8" rx="75.8" ry="74.4"/>
	<ellipse class="st12" cx="699.8" cy="248.3" rx="39.3" ry="36.7"/>
	<ellipse class="st13" cx="697.7" cy="247.8" rx="34.9" ry="33.4"/>
	<ellipse class="st15" cx="696.1" cy="245.2" rx="32.4" ry="29.1"/>
	<ellipse class="st13" cx="695.1" cy="244.5" rx="13.9" ry="12.8"/>
	<ellipse class="st15" cx="697.7" cy="248.3" rx="8.3" ry="7.4"/>
	<path class="st19" d="M891.7,132.3l10.1-0.8l1.6-18.7c0,0-9.3,0.5-9.9,1.4C892.9,115.1,891.7,132.3,891.7,132.3z"/>
	<polygon class="st1" points="891.2,138.6 901.1,138.9 901.8,131.6 891.7,132.3 	"/>
	<path class="st1" d="M9.7,141c0,0,15.4-0.2,16.7,0.6c1.2,0.8-0.5,8.4-0.5,8.4l-16.2-0.4V141z"/>
	<polygon class="st20" points="9.7,174.1 21.1,173.7 25.9,149.9 9.7,149.5 	"/>
	<path class="st14" d="M530.5,75.7l115.1-1.1l136.1-2.4c0,0,4.4-0.2,6,0s109.8,20.4,109.8,20.4l-357.9,6l-6.7-4.4L530.5,75.7z"/>
</g>
</svg>
  <svg id="truckOutline" viewBox="0 0 935.7 341">
    <g id="wheelOutline" class="outline">
	<ellipse cx="135.5" cy="262.9" rx="77.7" ry="71.6"/>
	<ellipse cx="700.7" cy="248.2" rx="75.8" ry="74.4"/>
</g>
<path id="truckOutline" class="outline" d="M919.5,189.4l-18-2.4c0.6-1.5,1.1-2.8,1.5-3.9c3-8,8-63,8-71s-3-14-3-14l-0.5-0.2 c0,0-109.9-20.7-111.5-20.9c-1.6-0.2-6.1,0-6.1,0l-138.2,2.5l-113.9,1.1c-1.6-10.7-6.3-31.8-6.3-31.8c-3-14-9.9-38.6-16.1-40.6 c-6.2-2-35.1-3.3-93.1-2.3S323.8,12,319,13c-6.2,1.3-12,7-12,7l-77,67c0,0-54,1-98,8s-68.4,13.7-89,24c-5,2.5-19,12-19,12l-7,8 l0,43.7l-6.8-0.5c0,0-2.4,0-2.9,1.8C6.9,185.9,8.9,210,8.9,210s26.8,30.8,29.3,31.3s8.2,0,8.2,0s0.9-0.7,1.8-2.2 c0.9-1.6-0.4-21.9,0-24.6s10.9-23.7,10.9-23.7l-0.7-3.1c0.9-0.9,4.1-3.8,14.6-13.6c15-14,92-10,113,2s19.4,44.6,32,54 c4,3,328-3,328-3l76-3c0,0,22-40,35-51s47-9,47-9s39-2,58,8s17.5,39,17.5,39H794l-1.4,0l18.6,18.2c0,0,7.8-0.4,9.8-2 c2-1.6,2.2-5.1,2.2-5.1l-10.5-11.8l-1.2,0c4.2-0.4,8.1-1.2,9.2-2.4c2.4-2.6,54,0,68.5,0.8l0,0.1l1.1,9.1c0,0,24.6,0.5,27-1.3 c2.5-1.7,6.7-9.5,6.7-9.5l2.2-9.8L919.5,189.4z"/>
</svg>
 </div>
 <button class="next">
<svg id="arrowNext" class="arrow" viewBox="0 0 114.3 195.8">
   <g class="fill">
	<g>
		<path d="M110.4,100.3l-82.8,82.8c-2,2-4.4,3-7.3,3c-2.8,0-5.3-1-7.3-3l-9.4-9.4c-2-2-3.1-4.4-3.2-7.3
			c-0.1-2.8,0.8-5.3,2.8-7.3L69.4,93L3.3,26.9c-2-2-2.9-4.4-2.8-7.3c0.1-2.8,1.2-5.3,3.2-7.3L13.1,3c2-2,4.4-3,7.3-3
			c2.8,0,5.3,1,7.3,3l82.8,82.8c2.3,2,3.4,4.4,3.4,7.3C113.8,95.9,112.7,98.3,110.4,100.3z"/>
	</g>
</g>
<g class="line">
	<g>
		<path fill="none" stroke="#000000" d="M110.4,109.5l-82.8,82.8c-2,2-4.4,3-7.3,3c-2.8,0-5.3-1-7.3-3l-9.4-9.4c-2-2-3.1-4.4-3.2-7.3
			c-0.1-2.8,0.8-5.3,2.8-7.3l66.1-66.1L3.3,36.1c-2-2-2.9-4.4-2.8-7.3c0.1-2.8,1.2-5.3,3.2-7.3l9.4-9.4c2-2,4.4-3,7.3-3
			c2.8,0,5.3,1,7.3,3L110.4,95c2.3,2,3.4,4.4,3.4,7.3C113.8,105.1,112.7,107.6,110.4,109.5z"/>
	</g>
</g>
</svg>
  </button>
              
            
!

CSS

              
                body{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:space-around;
  background:#d8d8d8;
}

svg{
  width:60vw;
}
.truckWrap{
  position:relative;
}
svg#truckOutline{
  position:absolute;
  left:0;
  top:0;
  width:61vw;
}
button{
  width:7em;
  background:none;
  border:0;
  cursor:pointer;
}
button svg{
  width:100%;
}
svg.arrow .fill{
  fill:#ef67d2;
}
svg.arrow .line{
  stroke:#000000;
}
.path{
  stroke-dasharray:0;
  stroke-dashoffset: 0;
}
.outline{
  fill:none;
  stroke:#000000;
  stroke-width:1;
}
.st0{fill:#262626;}
.st1{fill:#FFFFFF;}
.st2{fill:#E2CEAA;}
.st6{fill:none;}
.st9{fill:#94AEE0;}
.st10{fill:#424242;}
.st11{fill:#B7B7B7;}
.st12{fill:#D3D3D3;}
.st13{fill:#EAEAEA;}
.st14{fill:#686868;}
.st15{fill:#CECECE;}
.st16{fill:#FF0000;}
.st17{fill:#191919;}
.st18{fill:#A80707;}
.st19{fill:#FFA300;}
.st20{fill:#FFDA00;}
              
            
!

JS

              
                gsap.registerPlugin(DrawSVGPlugin);
gsap.registerPlugin(MorphSVGPlugin);
const pj1Paths = "#paintjob1 .path";
const pj2Paths = "#paintjob2 .path";
const nextBtn = document.querySelector("button.next");
const prevBtn = document.querySelector("button.prev");
const bodyBg = document.body;
MorphSVGPlugin.convertToPath("clipPath polygon");

const main = gsap.timeline({paused: true});
function getPaint1(){
  const pj1 = gsap.timeline();
  pj1.fromTo(pj1Paths,1, {drawSVG:0}, {drawSVG:1})
    .to(bodyBg, {background:"#70fcce"}, "<");
  return pj1;
}

function getPaint2(){
  const pj2 = gsap.timeline();
  pj2.to(bodyBg, {background:"#CBB5F7"}, ">")
  .to(".path.back", {opacity: 0, stagger: 0.2})
  .to("#pb1Front1Path", {opacity: 0}, "<")
  .to("#pb1Front2 > *", {morphSVG:"#pb2Front2 > *"},"<")
  .to("#pb1Front2Path", {morphSVG:"#pb2Front2Path", stroke:"#f2d31c"}, "<")
  .to("#pb1Front3 path", {morphSVG:"#pb2Front3 path"},"-=0.75")
  .to("#pb1Front3Path", {morphSVG:"#pb2Front3Path", stroke:"#e88225"}, "<")
   .fromTo("#pb2Front2Pathb",1, {drawSVG:0}, {drawSVG:1}, "<")
  .fromTo("#pb2Front3Pathb",1, {drawSVG:0}, {drawSVG:1}, "<")
  .fromTo("#pb2FrontBlue",1, {drawSVG:0}, {drawSVG:1}, "<")
  .fromTo("#pb2Hood",1, {drawSVG:0}, {drawSVG:1}, "<")
  .to("#truckbg", {stroke:"#0a5a8f"}, "-=0.5");
  return pj2;
}

function getPaint3(){
  const pj3 = gsap.timeline();
  pj3.to("#truckbg", {stroke:"#019098"})
  .to(bodyBg, {background:"#E8CAD8"}, "-=0.25")
  .to("#pb2Hood",1, {drawSVG:0}, "<")
  .to("#pb2FrontBlue", {opacity:0}, "-=0.5")
  .to("#pb2Front2Pathb",1, {drawSVG:0}, "<")
  .to("#pb2Front3Pathb",1, {drawSVG:0}, "-=0.75")
  .to("#pb1Front2 > *", {morphSVG:"#pb3Front1 path"},"-=1.2")
  .to("#pb1Front2Path", {morphSVG:"#pb3Front1Path", stroke:"#00534e"}, "<")
  .to("#pb1Front3 > *", {morphSVG:"#pb3Front2 path"},"-=0.75")
  .to("#pb1Front3Path", {morphSVG:"#pb3Front2Path", stroke:"#cae8e4"}, "<")
  .fromTo("#pb3Back1Path",1, {drawSVG:0,stroke:"#00534e"}, {drawSVG:1},"<")
  .fromTo("#pb3Back2Path",1, {drawSVG:0,stroke:"#cae8e4"}, {drawSVG:1}, "-=0.75");
  return pj3;
}

let last = 1;

main.add(getPaint1(), "paint1")
  .addPause("+=0", function() { last = 1})
  .add(getPaint2(), "paint2")
  .addPause("+=0", function() { last = 1})
  .add(getPaint3(), "paint3")
  .addPause("+=0", function() { last = 2})

nextBtn.addEventListener("click", function(e){
  if(last < 2){
    main.play();
  } else {
    main.restart();
  }
  
})



  
  

  
  
              
            
!
999px

Console