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

              
                <html>

<head>
  <meta CHARSET="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Flowline 1</title>
</head>

<body>
  <div id="attach-panel">
    <button class="control-button" id="play">Play</button>
    <button class="control-button" id="pause"><i class="fa fa-pause fa fa-2x fa-align-center"></i></button>
    <!-- <button id="reverse">reverse</button> -->
    <button class="control-button" id="resume"><i class="fa fa-play fa fa-2x fa-align-center"></i></button>
    <button class="control-button" id="restart">Restart</button>
    <div id="ctrl_slider"></div>
    <p id="step0" class="title">Greenhouse Gas System #2</p>
    <p id="step1" class="title">1. At least 5mL of sample (red) is loaded in the sample loop and flushed through the valve.</p>
    <p id="step2" class="title">2. Valve 1 rotates counter-clockwise.</p>
    <p id="step3" class="title">3. Sample is pushed through the analytical flow path by carrier gas (blue) from Carrier 1 to Column 1.</p>
    <p id="step4" class="title">4. Column 1 separates water and higher-molecular-weight hydrocarbon compounds
      <br> from greenhouse gas compounds.</p>
    <p id="step5" class="title">5. The first separation, greenhouse gases (green), is propelled by carrier gas to Column 2.
      <br>A second separation of water and higher-molecular-weight hydrocarbons (yellow) then follows.</p>
    <p id="step6" class="title">6. Column 2 separates air from methane, carbon dioxide, and nitrous oxide.</p>
    <p id="step7" class="title">7. Valve 1 switches back to original position and Column 1 is backflushed to remove water (aqua) from the system.</p>
    <p id="step8" class="title">8. Nitrous oxide from Column 2 moves through Valve 2 into the Electron Capture Detector (ECD).</p>
    <p id="step9" class="title">9. Valve 2 rotates counter-clockwise and methane flows through to the Flame Ionization Detector (FID).</p>
    <p id="step10" class="title">10. Valve 3 rotates counter-clockwise and carbon dioxide passes through to the Methanizer.</p>
    <p id="step11" class="title">11. The Methanizer converts carbon dioxide to methane using this reaction:
      <br>CO<sub>2</sub> + 4H<sub>2</sub> &#916 300 &degC / Ni+ &#8594; CH<sub>4</sub> +2H<sub>2</sub>O. The resultant methane flows to the FID.</p>

  </div>
  <div id="svg-cont" class="scaling-svg-container container-fluid" style="padding-bottom: 92%;">
    <?xml version="1.0" encoding="utf-8" ?>
    <!-- Generator: Adobe Illustrator 18.1.1, SVG Export Plug-In . SVG Version: 6.00 Build 0)  -->
    <svg id="svg" class="scaling-svg" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="50 170 900 500" xml:space="preserve">
      <g id="drawing" width="97%" height="60%">
        <g id="valves-and-backgrounds">
          <circle id="valve-1-background" fill="#CCCCCC" cx="260" cy="252.3" r="73.5" />
          <circle id="valve-2-background" fill="#CCCCCC" cx="694" cy="278.5" r="73.5" />
          <circle id="valve-3-background" fill="#CCCCCC" cx="693" cy="564.3" r="73.5" />

          <g class="black-stroke">
            <circle id="valve-1-border" cx="260.5" cy="252.8" r="75.2" />
            <circle id="valve-2-border" cx="693.5" cy="278.8" r="75.2" />
            <circle id="valve-3-border" cx="693.5" cy="563.8" r="75.2" />
          </g>
        </g>
        <g id="valve-1-static">
          <g class="black-stroke">
            <circle id="valve-1-port-1" cx="261.1" cy="195.6" r="7.5" />
            <circle id="valve-1-port-2" cx="293.6" cy="205.1" r="7.5" />
            <circle id="valve-1-port-3" cx="314.6" cy="232.4" r="7.5" />
            <circle id="valve-1-port-4" cx="314.8" cy="270.2" r="7.5" />
            <circle id="valve-1-port-5" cx="294.2" cy="300.7" r="7.5" />
            <circle id="valve-1-port-6" cx="260.1" cy="311.3" r="7.5" />
            <circle id="valve-1-port-7" class="backflush-1" cx="226.3" cy="297.5" r="7.5" />
            <circle id="valve-1-port-8" class="backflush-1" cx="205.7" cy="267.7" r="7.5" />
            <circle id="valve-1-port-9" cx="206.1" cy="232.6" r="7.5" />
            <circle id="valve-1-port-10" cx="228.3" cy="205.2" r="7.5" />
            <line id="valve-1-port-1-to-sample-in" x1="268.6" y1="91" x2="261.7" y2="188.2" />
            <line id="valve-1-port-2-to-sample-out" x1="298.4" y1="199.3" x2="349.5" y2="91" />
            <polyline id="valve-1-port-10-to-port-3" points="223,200.1 150.5,110.5 379.5,110.5 379.5,186 321.7,230.2" />
            <line id="valve-1-port-4-to-carrier-1" x1="427.5" y1="293.2" x2="322.1" y2="272.2" />
            <polyline id="valve-1-port-5-to-column-2" points="303,304.1 328.5,314.2 328.5,336.5 510.5,336.5 510.5,134.5 560,134.5" />
            <polyline id="valve-1-port-6-to-column-1-to-port-9" points="260.5,319 260.5,402.5 95.5,402.5 95.5,188 199.4,229.2" />
            <polyline id="valve-1-port-7-to-carrier-2" class="backflush-1" points="174.5,396 174.5,326 220.2,301.9" />
            <line id="valve-1-port-8-to-vent" class="backflush-1" x1="197.4" y1="270.2" x2="118.5" y2="303.8" />
          </g>
        </g>
        <g id="valve-2-static">
          <g class="black-stroke">
            <circle id="valve-2-port-1" cx="694.6" cy="228.1" r="7.5" />
            <circle id="valve-2-port-2" cx="743.6" cy="281.1" r="7.5" />
            <circle id="valve-2-port-3" cx="691.6" cy="329.1" r="7.5" />
            <circle id="valve-2-port-4" cx="640.6" cy="281.1" r="7.5" />
            <polyline id="column-2-to-valve-2-port-1" points="580,134.5 693.5,134.5 693.5,220" />
            <line id="valve-2-port-1-to-port-2" class="valve-2-hide" x1="699" y1="234.7" x2="738" y2="275" //>
            <line id="valve-2-port-2-to-port-3" class="hideit valve-2-rotate init-vis" x1="696.5" y1="326" x2="736" y2="286" />
            <line id="valve-2-port-3-to-port-4" class="valve-2-hide" x1="647" y1="283.7" x2="687.7" y2="322.3" />
            <line id="valve-2-port-4-to-port-1" class="hideit valve-2-rotate init-vis" x1="647.5" y1="275.8" x2="689.2" y2="232.2" />
            <polyline id="valve-2-port-3-to-valve-3-port-1" points="633,280.5 576.5,280.5 576.5,448.5 693.5,448.5 693.5,508" />
            <polyline id="valve-2-port-3-to-carrier-2" points="693.5,336 693.5,380.5 808,380.5" />
            <line id="valve-2-port-2-to-ecd" fill="none" x1="751" y1="278.5" x2="866" y2="278.5" />
          </g>
        </g>
        <g id="valve-3-static">
          <g class="black-stroke">
            <circle id="valve-3-port-1" cx="694.6" cy="513.1" r="7.5" />
            <circle id="valve-3-port-2" cx="743.6" cy="566.1" r="7.5" />
            <circle id="valve-3-port-3" cx="691.6" cy="614.1" r="7.5" />
            <circle id="valve-3-port-4" cx="640.6" cy="566.1" r="7.5" />
            <line id="valve-3-port-1-to-port-2" class="valve-3-hide" x1="700" y1="517.7" x2="738.3" y2="561.3" />
            <line id="valve-3-port-2-to-port-3" class="valve-3-hide" x1="647" y1="569" x2="686.3" y2="610" />
            <line id="valve-3-port-3-to-port-4" class="hideit valve-3-rotate init-vis" x1="646.1" y1="559.8" x2="687.9" y2="519.5" />
            <line id="valve-3-port-2-to-port-3" class="hideit valve-3-rotate init-vis" x1="698.4" y1="609.5" x2="740.3" y2="569.2" />
            <polyline id="valve-3-port-4-to-methanizer-to-fid" points="860,505.5 827.5,505.5 827.5,706.5 583.5,706.5 583.5,565.5 633,565.5" />
            <line id="valve-3-port-2-to-fid-part-1" fill="none" x1="750" y1="568.5" x2="826" y2="568.5" />
            <polyline id="valve-3-port-3-to-carrier-4" points="693.5,621 693.5,665.5 800,665.5" />
          </g>
        </g>
        <g id="detectors-and-methanizer-static">
          <path id="ecd" class="ecd" fill="#C7B299" stroke="#000000" stroke-width="4" stroke-miterlimit="10" d="M884.9,340.7l-9.6-0.2
		c-6.6-0.1-11.9-5.6-11.8-12.2l1.8-103.8c0.1-6.6,5.6-11.9,12.2-11.8l9.6,0.2c6.6,0.1,11.9,5.6,11.8,12.2l-1.8,103.8
			C897,335.5,891.5,340.8,884.9,340.7z" />
          <path id="fid" class="fid" fill="#BFDEFF" stroke="#000000" stroke-width="4" stroke-miterlimit="10" d="M881.9,540.7l-9.6-0.2
			c-6.6-0.1-11.9-5.6-11.8-12.2l0.3-17.3l0.7-37l0.9-49.5c0.1-6.6,5.6-11.9,12.2-11.8l9.6,0.2c6.6,0.1,11.9,5.6,11.8,12.2l-1.8,103.8
			C894,535.5,888.5,540.8,881.9,540.7z" />
          <path id="methanizer" class="methanizer" fill="#F8F706" stroke="#000000" stroke-width="4" stroke-miterlimit="10" d="M760.5,718h-113c-6.3,0-11.5-5.2-11.5-11.5l0,0
			c0-6.3,5.2-11.5,11.5-11.5h113c6.3,0,11.5,5.2,11.5,11.5l0,0C772,712.8,766.8,718,760.5,718z" />
        </g>
        <g id="valve-1-initial-port-to-port" class="initial first-out black-stroke">
          <line id="valve-1-port-10-to-port-1" class="initial first-out" x1="253.8" y1="197.2" x2="234.2" y2="203.3" />
          <line id="valve-1-port-2-to-port-3" class="initial first-out" x1="309.7" y1="226.6" x2="298.4" y2="210.9" />
          <line id="valve-1-port-4-to-port-5" class="initial first-out" x1="310.5" y1="276.3" x2="298.4" y2="294.5" />
          <line id="valve-1-port-6-to-port-7" class="initial first-out" x1="253.2" y1="308.4" x2="233.3" y2="300.3" />
          <line id="valve-1-port-8-to-port-9" class="initial first-out" x1="205.7" y1="260.2" x2="206.1" y2="240.1" />
        </g>
        <g id="valve-1-rotate-first" class="valve-1-rotate">
          <line id="valve-1-port-9-to-port-10-sample" class="valve-1-rotate red-stroke" x1="223.3" y1="210.8" x2="210.9" y2="226.8" />
          <line id="valve-1-port-1-to-port-2-sample" class="valve-1-rotate backflush-1 red-stroke rotate-back" x1="268.5" y1="197.1" x2="286.6" y2="202.6" />
          <line id="valve-1-port-3-to-port-4-sample" class="valve-1-rotate red-stroke" x1="314.3" y1="239.9" x2="314.1" y2="262.8" />
          <line id="valve-1-port-6-to-port-7-empty" class="valve-1-rotate black-stroke" x1="287.2" y1="303.3" x2="267.3" y2="309.3" />
          <line id="valve-1-port-7-to-port-8-empty" class="valve-1-rotate black-stroke" x1="222" y1="291.4" x2="210" y2="273.9" />
          <line id="valve-1-port-9-to-port-10-empty" class="valve-1-rotate black-stroke" x1="223.3" y1="210.8" x2="210.9" y2="226.8" />
          <line id="valve-1-port-1-to-port-2-sample" class="valve-1-rotate red-stroke" x1="268.5" y1="197.1" x2="286.6" y2="202.6" />
          <line id="valve-1-port-3-to-port-4-empty" class="valve-1-rotate backflush-1 black-stroke" x1="314.3" y1="239.9" x2="314.1" y2="262.8" />
        </g>
        <g id="sample-in" class="red-stroke init-vis">
          <line id="valve-1-sample-in-to-port-1" class="first backflush-1" x1="268.6" y1="91" x2="261.7" y2="188.2" />
          <circle id="valve-1-port-1-sample" class="first backflush-1" cx="261.1" cy="195.6" r="7.5" transform="rotate(260, 261.1, 195.6)" />
          <line id="valve-1-port-1-to-port-10-sample" class="first first-out" x1="253.8" y1="197.2" x2="234.2" y2="203.3" />
          <circle id="valve-1-port-10-sample" class="first" cx="228.3" cy="205.2" r="7.5" transform="rotate(340, 228.3, 205.2)" />
          <polyline id="valve-1-port-10-to-port-3-sample" class="first" points="223,200.1 150.5,110.5 379.5,110.5 379.5,186 321.7,230.2" />
          <circle id="valve-1-port-3-sample" class="first" cx="314.6" cy="232.4" r="7.5" transform="rotate(320, 314.6, 232.4)" />
          <line id="valve-1-port-3-to-port-2-sample" class="first first-out" x1="309.7" y1="226.6" x2="298.4" y2="210.9" />
          <circle id="valve-1-port-2-sample" class="first backflush-1" cx="293.6" cy="205.1" r="7.5" transform="rotate(32, 293.6, 205.1)" />
          <line id="valve-1-port-2-to-sample-out" class="first backflush-1" x1="298.4" y1="199.3" x2="349.5" y2="91" />
        </g>

        <g id="sample-through" class="red-stroke push-show init-vis">
          <line id="valve-1-sample-in-to-port-1-sample-through" class="backflush-1 push-show" x1="268.6" y1="91" x2="261.7" y2="188.2" />
          <circle id="valve-1-port-1-sample-through" class="backflush-1 push-show" cx="261.1" cy="195.6" r="7.5" transform="rotate(260, 261.1, 195.6)" />
          <circle id="valve-1-port-2-sample-through" class="backflush-1 push-show" cx="293.6" cy="205.1" r="7.5" transform="rotate(32, 293.6, 205.1)" />
          <line id="valve-1-port-2-to-sample-out-sample-through" class="backflush-1 push-show" x1="298.4" y1="199.3" x2="349.5" y2="91" />
        </g>

        <g id="sample-to-col-2" class="hideit fourth init-vis">
          <circle id="valve-1-port-9-sample" class="hideit fourth" cx="206.1" cy="232.6" r="7.5" />
          <polyline id="valve-1-port-9-to-column-1-sample" class="hideit fourth" points="199.4,229.2 95.5,188 95.5,246.5" />
          <polyline id="valve-1-column-1-to-port-6-sample" class="hideit fourth" points="95.5,348 95.5,402.5 260.5,402.5 260.5,319" />
          <circle id="valve-1-port-6-sample" class="hideit fourth" cx="260.1" cy="311.3" r="7.5" />
          <line id="valve-1-port-6-to-port-5-sample" class="hideit" x1="267.3" y1="309.3" x2="287.2" y2="303.3" />
          <circle id="valve-1-port-5-sample" class="hideit fourth" cx="294.2" cy="300.7" r="7.5" />
          <polyline id="valve-1-port-5-to-column-2-sample" class="hideit fourth" points="303,304.1 328.5,314.2 328.5,336.5 510.5,336.5 510.5,134.5 556,134.5" />
        </g>
        <g id="carrier-gas-in" class="cg blue-stroke init-vis">
          <line id="valve-1-carrier-1-to-port-4-cg" class="cg backflush-1 cgchange" x1="427.5" y1="293.2" x2="322.1" y2="272.2" />
          <circle id="valve-1-port-4-cg" class="cg backflush-1 cgchange" cx="314.8" cy="270.2" r="7.5" transform="rotate(30, 314.8, 270.2)" />
          <line id="valve-1-port-4-to-port-3" class="cg valve-1-rotate-back backflush-1 cgchange" x1="314.1" y1="262.8" x2="314.3" y2="239.9" />
        </g>
        <g id="carrier-gas-in-sample-out" class="red-stroke init-vis">
          <line id="valve-1-port-10-to-port-9-sample-cg-mix-through" class="sample-through valve-1-rotate-back" x1="223.3" y1="210.8" x2="210.9" y2="226.8" />
          <circle id="valve-1-port-9-sample-cg-mix-through" class="sample-through" cx="206.1" cy="232.6" r="7.5" transform="rotate(290, 206.1, 232.6)" />
          <polyline id="valve-1-port-9-to-column-1-sample-cg-mix-through" class="sample-through" points="199.9,229.2 95.5,188.3 95.7,276.7" />
        </g>


        <g id="carrier-sample-push" class="red-stroke init-vis">
          <circle id="valve-1-port-3-cg-push-sample" class="sample-push" cx="314.6" cy="232.4" r="7.5" transform="rotate(80, 314.6, 232.4)" />
          <polyline id="valve-1-port-3-to-port-10-cg-push-sample" class="sample-push" points="321.7,230.2 379.5,186 379.5,110.5 150.5,110.5 223,200.1" />
          <circle id="valve-1-port-10-cg-push-sample" class="sample-push" cx="228.3" cy="205.2" r="7.5" transform="rotate(210, 228.3, 205.2)" />
          <line id="valve-1-port-10-to-port-9-cg-push-sample" class="sample-push" x1="223.3" y1="210.8" x2="210.9" y2="226.8" />
          <circle id="valve-1-port-9-cg-push-sample" class="sample-push" cx="206.1" cy="232.6" r="7.5" transform="rotate(290, 206.1, 232.6)" />
          <polyline id="valve-1-port-9-to-column-1-cg-push-sample" class="sample-push" points="199.9,229.2 95.5,188.3 95.7,276.7" />
        </g>

        <g id="carrier-gas-sample-cg-mix" class="blue-stroke init-vis">
          <circle id="valve-1-port-3-sample-cg-mix" class="cg backflush-1" cx="314.6" cy="232.4" r="7.5" transform="rotate(80, 314.6, 232.4)" />
          <polyline id="valve-1-port-3-to-port-10-sample-cg-mix" class="cg backflush-1" points="321.7,230.2 379.5,186 379.5,110.5 150.5,110.5 223,200.1" />
          <circle id="valve-1-port-10-sample-cg-mix" class="cg backflush-1" cx="228.3" cy="205.2" r="7.5" transform="rotate(210, 228.3, 205.2)" />
          <line id="valve-1-port-10-to-port-9-sample-cg-mix" class="cg valve-1-rotate-back backflush-1" x1="223.3" y1="210.8" x2="210.9" y2="226.8" />
          <circle id="valve-1-port-9-sample-cg-mix" class="cg backflush-1" cx="206.1" cy="232.6" r="7.5" transform="rotate(290, 206.1, 232.6)" />
          <polyline id="valve-1-port-9-to-column-1-sample-cg-mix" class="cg backflush-1" points="199.9,229.2 95.5,188.3 95.7,276.7" />
          <circle id="valve-1-port-6-sample-cg-mix" class="cg-column-1" cx="260.2" cy="311.3" r="7.5" transform="rotate(70, 260.1, 311.3)" />
          <line id="valve-1-port-6-to-port-5-sample-cg-mix" class="cg-column-1 valve-1-rotate-back backflush-1" x1="267.4" y1="309.2" x2="287.4" y2="303.2" />
          <circle id="valve-1-port-5-sample-cg-mix" class="cg-column-1" fill="none" stroke="#C262F3" stroke-width="5" stroke-miterlimit="10" cx="294.3" cy="300.6" r="7.5" transform="rotate(150, 294.2, 300.7)" />
          <polyline id="valve-1-port-5-to-column-2-sample-cg-mix" class="cg-column-1" points="303.1,304 328.6,314.2 328.6,336.4 510.7,336.4 510.7,134.2 555.5,134.2" />
          <polyline id="valve-1-column-1-to-port-6-sample-cg-mix" class="cg-column-2" points="95.5,325.7 95.5,402.5 260.5,402.5 260.5,319.3" />
          <circle id="valve-1-port-6-sample-cg-mix-2" class="cg-column-2" cx="260.1" cy="311.3" r="7.5" />
          <line id="valve-1-port-6-to-port-5-sample-cg-mix-2" class="cg-column-2 valve-1-rotate-back backflush-1" x1="267.4" y1="309.3" x2="287.2" y2="303.3" />
          <circle id="valve-1-port-5-sample-cg-mix-2" class="cg-column-2" cx="294.2" cy="300.7" r="7.5" />
          <polyline id="valve-1-port-5-to-column-2-sample-cg-mix-2" class="cg-column-2" points="303,304.1 328.5,314.2 328.5,336.5 510.5,336.5 510.5,134.5 556.5,134.5 " />
        </g>


        <g id="slug1" class="green-stroke slug-1 init-vis">
          <polyline id="valve-1-column-1-to-port-6-slug-1" class="slug-1 init-vis" points="95.5,325.7 95.5,402.5 260.5,402.5 260.5,319.3" />
          <circle id="valve-1-port-6-slug-1" class="slug-1 init-vis" cx="260.1" cy="311.3" r="7.5" transform="rotate(75, 260.1, 311.3)" /> />
          <line id="valve-1-port-6-to-port-5-slug-1" class="slug-1 init-vis" x1="267.4" y1="309.3" x2="287.2" y2="303.3" />
          <circle id="valve-1-port-5-sample-slug-1" class="slug-1 init-vis" cx="294.2" cy="300.7" r="7.5" transform="rotate(145, 294.2, 300.7)" /> />
          <polyline id="valve-1-port-5-to-column-2-slug-1" class="slug-1 init-vis" points="303,304.1 328.5,314.2 328.5,336.5 510.5,336.5 510.5,134.5 556.5,134.5 " />
        </g>

        <g id="slug2" class="blue-stroke slug-2 init-vis">
          <polyline id="valve-1-column-1-to-port-6-slug-2" class="slug-2 init-vis backflush-1" points="95.5,325.7 95.5,402.5 260.5,402.5 260.5,319.3" />
          <circle id="valve-1-port-6-slug-2" class="slug-2 init-vis backflush-1" cx="260.1" cy="311.3" r="7.5" transform="rotate(75, 260.1, 311.3)" />
          <line id="valve-1-port-6-to-port-5-slug-2" class="slug-2 init-vis valve-1-rotate-back backflush-1" x1="267.4" y1="309.3" x2="287.2" y2="303.3" />
          <circle id="valve-1-port-5-sample-slug-2" class="slug-2 init-vis backflush-1" cx="294.2" cy="300.7" r="7.5" transform="rotate(145, 294.2, 300.7)" />
          <polyline id="valve-1-port-5-to-column-2-slug-2" class="slug-2 init-vis backflush-1" points="303,304.1 328.5,314.2 328.5,336.5 510.5,336.5 510.5,134.5 556.5,134.5 " />
        </g>

        <g id="slug3" class="yellow-stroke slug-3 init-vis">
          <polyline id="valve-1-column-1-to-port-6-slug-3" class="slug-3 init-vis" points="95.5,325.7 95.5,402.5 260.5,402.5 260.5,319.3" />
          <circle id="valve-1-port-6-slug-3" class="slug-3 init-vis" cx="260.1" cy="311.3" r="7.5" transform="rotate(75, 260.1, 311.3)" />
          <line id="valve-1-port-6-to-port-5-slug-3" class="slug-3 init-vis" x1="267.4" y1="309.3" x2="287.2" y2="303.3" />
          <circle id="valve-1-port-5-sample-slug-3" class="slug-3 init-vis" cx="294.2" cy="300.7" r="7.5" transform="rotate(145, 294.2, 300.7)" />
          <polyline id="valve-1-port-5-to-column-2-slug-3" class="slug-3 init-vis" points="303,304.1 328.5,314.2 328.5,336.5 510.5,336.5 510.5,134.5 556.5,134.5 " />
        </g>
        <g id="columns">
          <rect id="column-1" x="85" y="248" fill="#CCCCCC" stroke="#000000" stroke-width="4" stroke-miterlimit="10" width="21" height="99" />
          <rect id="column-2" x="558" y="124" fill="#CCCCCC" stroke="#000000" stroke-width="4" stroke-miterlimit="10" width="99" height="21" />
        </g>
        <g id="valve-1-column-1-backflush-1a" class="blue-stroke init-vis column-1-flush-1a">
          <polyline id="valve-1-carrier-2-to-port-7-backflush-1a" class="column-1-flush-1a" points="174.5,396 174.5,326 220.2,301.9" />
          <circle id="valve-1-port-7-backflush-1a" class="column-1-flush-1a" cx="226.3" cy="297.5" r="7.5" transform="rotate(145, 226.3, 297.5)" />
          <line id="valve-1-port-7-to-port-6-backflush-1a" class="column-1-flush-1a" x1="233.3" y1="300.3" x2="253.2" y2="308.4" />
          <circle id="valve-1-port-6-backflush-1a" class="column-1-flush-1a" cx="260.1" cy="311.3" r="7.5" transform="rotate(190, 260.1, 311.3)" />
          <polyline id="valve-1-port-6-to-column-1-backflush-1a" class="column-1-flush-1a" points="260.5,319.3 260.5,402.5 95.5,402.5 95.5,348.7" />
        </g>

        <g id="valve-1-column-1-backflush-1b" class="blue-stroke init-vis column-1-flush-1b">
          <rect id="valve-1-column-1-backflush" class="column-1-flush-1b" x="85" y="248" fill="#4E8AF4" stroke="#000000" stroke-width="4" stroke-miterlimit="10" width="21" height="99" />
          <polyline id="valve-1-column-1-to-port-9-backflush" class="column-1-flush-1b" points="95.7,246 95.5,188.3 199.9,229.2" />
          <circle id="valve-1-port-9-backflush" class="column-1-flush-1b" cx="206.1" cy="232.6" r="7.5" transform="rotate(195, 206.1, 232.6)" />
          <line id="valve-1-port-9-to-port-8-backflush" class="column-1-flush-1b" x1="206.1" y1="240.1" x2="205.7" y2="260.2" />
          <circle id="valve-1-port-8-backflush" class="column-1-flush-1b" cx="205.7" cy="267.7" r="7.5" transform="rotate(262, 205.7, 267.7)" />
          <line id="valve-1-port-8-to-vent" class="column-1-flush-1b" x1="197.4" y1="270.2" x2="118.5" y2="303.8" />
        </g>

        <g id="valve-1-column-1-backflush-2" class="acqua-stroke init-vis column-1-flush-2">
          <polyline id="valve-1-column-1-to-port-9-backflush-2" class="column-1-flush-2" points="95.7,246 95.5,188.3 199.9,229.2" />
          <circle id="valve-1-port-9-backflush-2" class="column-1-flush-2" cx="206.1" cy="232.6" r="7.5" transform="rotate(195, 206.1, 232.6)" />
          <line id="valve-1-port-9-to-port-8-backflush-2" class="column-1-flush-2" x1="206.1" y1="240.1" x2="205.7" y2="260.2" />
          <circle id="valve-1-port-8-backflush-2" class="column-1-flush-2" cx="205.7" cy="267.7" r="7.5" transform="rotate(262, 205.7, 267.7)" />
          <line id="valve-1-port-8-to-vent-2" class="column-1-flush-2" x1="197.4" y1="270.2" x2="118.5" y2="303.8" />
        </g>

        <g id="valve-1-column-1-backflush-3" class="blue-stroke init-vis column-1-flush-3">
          <polyline id="valve-1-column-1-to-port-9-backflush-3" class="column-1-flush-3" points="95.7,246 95.5,188.3 199.9,229.2" />
          <circle id="valve-1-port-9-backflush-3" class="column-1-flush-3" cx="206.1" cy="232.6" r="7.5" transform="rotate(195, 206.1, 232.6)" />
          <line id="valve-1-port-9-to-port-8-backflush-3" class="column-1-flush-3" x1="206.1" y1="240.1" x2="205.7" y2="260.2" />
          <circle id="valve-1-port-8-backflush-3" class="column-1-flush-3" cx="205.7" cy="267.7" r="7.5" transform="rotate(262, 205.7, 267.7)" />
          <line id="valve-1-port-8-to-vent-3" class="column-1-flush-3" x1="197.4" y1="270.2" x2="118.5" y2="303.8" />
        </g>

        <g id="column-2-to-ecd" class="purple-stroke init-vis">
          <polyline id="column-2-to-valve-2-port-1-no-to-ecd" class="no-to-ecd" points="659,134.5 693.5,134.5 693.5,220 	" />
          <circle id="valve-2-port-1-no-to-ecd" class="no-to-ecd" cx="694.6" cy="228.1" r="7.5" />
          <line id="valve-2-port-1-to-port-2-no-to-ecd" class="no-to-ecd" x1="699" y1="234.7" x2="738" y2="275" />
          <circle id="valve-2-port-2-no-to-ecd" class="no-to-ecd" cx="743.6" cy="281.1" r="7.5" />
          <line id="valve-2-port-2-to-ecd-no-to-ecd" class="no-to-ecd" x1="751" y1="278.5" x2="862.5" y2="278.5" />
        </g>
        <g id="column-2-to-fid" class="orange-stroke init-vis">
          <polyline id="column-2-to-valve-2-port-1-methane-to-fid" class="methane-to-fid" points="659,134.5 693.5,134.5 693.5,220" />
          <circle id="valve-2-port-1-methane-to-fid" class="methane-to-fid" cx="694.6" cy="228.1" r="7.5" />
          <line id="valve-2-port-1-to-port-4-methane-to-fid" class="methane-to-fid" x1="689.2" y1="232.2" x2="647.5" y2="275.8" />
          <circle id="valve-2-port-4-methane-to-fid" class="methane-to-fid" cx="640.6" cy="281.1" r="7.5" />
          <polyline id="valve-2-port-4-to-valve-3-port-1-methane-to-fid" class="methane-to-fid" points="633,280.5 576.5,280.5 576.5,448.5 693.5,448.5 693.5,508" />
          <circle id="valve-3-port-1-methane-to-fid" class="methane-to-fid" cx="694.6" cy="513.1" r="7.5" />
          <line id="valve-3-port-1-to-port-2-methane-to-fid" class="methane-to-fid" x1="700" y1="517.7" x2="738.3" y2="561.3" />
          <circle id="valve-3-port-2-methane-to-fid" class="methane-to-fid" cx="743.6" cy="566.1" r="7.5" />
          <line id="valve-3-port-2-to-fid-1-methane-to-fid" class="methane-to-fid" x1="750" y1="568.5" x2="826" y2="568.5" />
          <polyline id="valve-3-port-2-to-fid-2-methane-to-fid" class="methane-to-fid" points="827.5,571 827.5,505.5 859,505.5 " />
        </g>
        <g id="column-2-to-methanizer" class="pink-stroke init-vis">
          <polyline id="column-2-to-valve-2-port-1-carbon-to-methane" class="carbon-to-methane" points="659,134.5 693.5,134.5 693.5,220 	" />
          <circle id="valve-2-port-1-carbon-to-methane" class="carbon-to-methane" cx="694.6" cy="228.1" r="7.5" />
          <line id="valve-2-port-1-to-port-4-carbon-to-methane" class="carbon-to-methane" x1="689.2" y1="232.2" x2="647.5" y2="275.8" />
          <circle id="valve-2-port-4-carbon-to-methane" class="carbon-to-methane" cx="640.6" cy="281.1" r="7.5" />
          <polyline id="valve-2-port-4-to-valve-3-port-1-carbon-to-methane" class="carbon-to-methane" points="633,280.5 576.5,280.5 576.5,448.5 693.5,448.5 693.5,508" />
          <circle id="valve-3-port-1-carbon-to-methane" class="carbon-to-methane" cx="694.6" cy="513.1" r="7.5" />
          <line id="valve-3-port-1-to-port-4-carbon-to-methane" class="carbon-to-methane" x1="687.9" y1="519.5" x2="646.1" y2="559.8" />
          <circle id="valve-3-port-4-carbon-to-methane" class="carbon-to-methane" cx="640.6" cy="566.1" r="7.5" />
          <polyline id="valve-3-port-4-to-methanizer" class="carbon-to-methane" points="633,565.5 583.5,565.5 583.5,706.5 634.5,706.5" />
        </g>
        <g id="methanizer-to-fid" class="orange-stroke init-vis">
          <polyline class="methane-to-fid-2" points="773.5,706.5 827.5,706.5 827.5,505.5 859,505.5" />
        </g>
        <g class="labels">
          <rect x="222.5" y="246.5" fill="none" width="71.5" height="27" />
          <text transform="matrix(1 0 0 1 230 255.02)">Valve 1</text>
          <rect x="371.5" y="307" fill="none" width="71.5" height="27" />
          <text transform="matrix(1 0 0 1 386.2324 315.52)">Carrier 1</text>
          <rect x="113" y="303.5" fill="none" width="71.5" height="27" />
          <text transform="matrix(1 0 0 1 120 324)">Vent</text>
          <rect x="162" y="87" fill="none" width="71.5" height="27" />
          <text transform="matrix(1 0 0 1 135 92.52)">Gas sample in</text>
          <rect x="363" y="85" fill="none" width="99.5" height="27" />
          <text transform="matrix(1 0 0 1 360.3687 93.52)">Gas sample out</text>
          <text style="fill:#4E8AF4" transform="matrix(1 0 0 1 565 118.02)">Column 2</text>
          <text transform="matrix(1 0 0 1 665 287.02)">Valve 2</text>
          <text transform="matrix(1 0 0 1 660 570.02)">Valve 3</text>
          <text transform="matrix(1 0 0 1 816.3525 384.02)">Carrier 3</text>
          <text transform="matrix(1 0 0 1 740 657.02)">Carrier 4</text>
          <path fill="none" stroke="#000000" stroke-width="5" stroke-miterlimit="10" d="M806,685.5" />
          <path fill="none" stroke="#000000" stroke-width="5" stroke-miterlimit="10" d="M806,685.5" />
          <text style="fill:#4E8AF4" transform="matrix(1 0 0 1 100 241.02)"><a xlink:href="/index.html" target="_blank">Column 1</a></text>
          <text transform="matrix(1 0 0 1 182.3525 376.02)">Carrier 2</text>
          <text style="fill:#4E8AF4" transform="matrix(1 0 0 1 780 202.02)" enable-background="new">
            <tspan x="0" y="0">Electron</tspan>
            <tspan x="1.8" y="21.6">Capture</tspan>
            <tspan x="-3.9" y="43.2">Detector</tspan>
            <tspan x="20.4" y="64.8">(ECD)</tspan>
          </text>
          <text style="fill:#4E8AF4" transform="matrix(1 0 0 1 790 450.02)" enable-background="new">
            <tspan x="0" y="0">Flame </tspan>
            <tspan x="-25.3" y="21.6">Ionization</tspan>
            <tspan x="-55.3" y="43.2">Detector (FID)</tspan>
          </text>
          <text style="fill:#4E8AF4" transform="matrix(1 0 0 1 662.4296 712.02)">Methanizer</text>
        </g>
      </g>
    </svg>
  </div>
</body>
              
            
!

CSS

              
                @viewport {
  width: 600px;
  overflow: scroll;
  height: auto
}

.init-vis {
  visibility: hidden;
}

body {
  font-size: 1.5em;
  width: 100%;
  height: auto;
  font-family: Gotham, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: bold;
}

.title {
  position: absolute;
  top: 2%;
  margin-left: 8%;
  font-size: 1.8vw;
  align-content: left;
  font-family: Gotham, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: bold;
  vertical-align: middle;
  text-align: middle;
  padding-left: 3%;
  padding-right: 1%;
  line-height: 2.25vw;
  visibility: hidden;
}

.animation1 {
  position: relative;
  width: 100%;
}

.labels {
  font-family: Gotham, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: bold;
}

.scaling-svg-container {
  position: relative;
  height: 100%;
  width: 100%;
  padding: 0;
  padding-bottom: 100%;
}

.scaling-svg {
  position: absolute;
  height: 100%;
  width: 100%;
  left: 0;
  top: 50;
}

.black-stroke {
  stroke: #000000;
  fill: none;
  stroke-width: 5;
  stroke-miterlimit: 10;
}

.red-stroke {
  stroke: #ED3B41;
  fill: none;
  stroke-width: 5;
  stroke-miterlimit: 10;
}

.blue-stroke {
  stroke: #4E8AF4;
  fill: none;
  stroke-width: 5;
  stroke-miterlimit: 10;
}

.acqua-stroke {
  stroke: #78E7F4;
  fill: none;
  stroke-width: 5;
  stroke-miterlimit: 10;
}

.purple-stroke {
  stroke: purple;
  fill: none;
  stroke-width: 5;
  stroke-miterlimit: 10;
}

.green-stroke {
  stroke: #3DC862;
  fill: none;
  stroke-width: 5;
  stroke-miterlimit: 10;
}

.orange-stroke {
  stroke: #F87F08;
  fill: none;
  stroke-width: 5;
  stroke-miterlimit: 10;
}

.pink-stroke {
  stroke: #FA77E9;
  fill: none;
  stroke-width: 5;
  stroke-miterlimit: 10;
}

.yellow-stroke {
  stroke: gold;
  fill: none;
  stroke-width: 5;
  stroke-miterlimit: 10;
}

button {
  padding: 1%;
  float: left;
  clear: both;
  z-index: 1001;
}

button:nth-child(1) {
  margin-left: 10px;
}

#attach-panel {
  position: fixed;
  z-index: 999;
  background: #83C7F8;
  width: 100%;
  margin-top: -20px;
  min-height: 7.5vw;
  max-height: 8vw;
  clear: right;
  display: inline-block;
  box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, 0.75);
  padding: 0.5%;
}

.control-button {
  background-color: #F0F5F7;
  border-radius: 7px;
  border-color: #000;
  border-style: solid;
  border-width: 2px;
  cursor: pointer;
  font-family: Gotham, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.6vw;
  width: 8%;
  margin-left: 5px;
  max-height: 7%;
}

#ctrl_slider {
  position: absolute;
  width: 95%;
  height: 0.5vw;
  left: 18px;
  bottom: 8%;
  background-color: #F0F5F7;
  border: 1px solid rgba(102, 102, 102, 1.0;
}

.link-out {
  color: #2257E5;
}
              
            
!

JS

              
                $(document).ready(function() {

  TweenLite.onOverwrite = function(overwritten, overwriting) {
    console.log("a tween was overwritten at time: " + master.time())
    console.log(overwritten.target)
  }
  
  
  $("#pause").hide();
  $("#resume").hide();
  $("#restart").hide();

  var master = new TimelineMax();
  slider = $("#ctrl_slider"),
    sliderValue = {
      value: 0
    };

  slider.slider({
    range: false,
    min: 0,
    max: 100,
    step: .1,
    start: function() {
      master.pause();
    },
    slide: function(event, ui) {
      master.progress(ui.value / 100);
    },
    stop: function() {
      master.pause();
    }
  });

  master.eventCallback("onUpdate", function() {
    sliderValue.value = master.progress() * 100;
    slider.slider(sliderValue);
    $("#restart").hide();
    $("#play").show();
  });

  master.eventCallback("onComplete", function() {
    TweenMax.to(slider, 1, {
      autoAlpha: 1
    });
    $("#play").hide();
    $("#restart").show();
  });

  var playBtn = document.getElementById("play")

  playBtn.onclick = function() {
    master.paused(!master.paused());
    $("#step0").hide();
    $("#ctrl_slider").show();
    playBtn.innerHTML = master.paused() ? "Play" : "Pause";
  }

  $("#ctrl_slider").mousedown(function() {
    $("#play").html("Play");
  });

  $("#restart").click(function() {
    master.play(0);
    $(this).hide();
    $("#play").show();
    playBtn.innerHTML = master.paused() ? "Play" : "Pause";
  });

  var box1 = $(".animation1"),
    column1 = $("#column-1"),
    column2 = $("#column-2"),
    backflush1 = $(".backflush-1"),
    cgchangecolor = $(".cgchange"),
    ecd = $(".ecd"),
    fid = $(".fid"),
    methanizer = $(".methanizer"),
    svgCont = $("#svg-cont"),
    h = [];

  var json = [{
    line1: "first"
  }, {
    line3: "first-out"
  }, {
    line4: "valve-1-rotate"
  }, {
    line5: "second"
  }, {
    line6: "fourth"
  }, {
    line7: "cg"
  }, {
    line8: "cg-column-1"
  }, {
    line9: "cg-column-2"
  }, {
    line10: "valve-1-rotate-back"
  }, {
    line11a: "column-1-flush-1a"
  }, {
    line11b: "column-1-flush-1b"
  }, {
    line12: "column-1-flush-2"
  }, {
    line13: "column-1-flush-3"
  }, {
    line14: "no-to-ecd"
  }, {
    line15: "valve-2-rotate"
  }, {
    line16: "valve-2-hide"
  }, {
    line17: "methane-to-fid"
  }, {
    line18: "valve-3-rotate"
  }, {
    line19: "valve-3-hide"
  }, {
    line20: "carbon-to-methane"
  }, {
    line21: "methane-to-fid-2"
  }, {
    line22: "sample-through"
  }, {
    slug1: "slug-1"
  }, {
    slug2: "slug-2"
  }, {
    slug3: "slug-3"
  }, {
    samplepush: "sample-push"
  }, {
    donthide: "push-show"
  }];

  $.each(json, function() {
    $.each(this, function(name, value) {
      window[name] = document.getElementsByClassName(value)
    });
  });

  tl = new TimelineMax();
  tl.timeScale(0.55);
  tl.to("#step0", 0.5, {
    autoAlpha: 1,
    ease: Back.easeOut
  });
  tl.to(window, 3, {
    scrollTo: {
      y: 0
    },
    ease: Power2.easeOut
  });

  master.add(step1(), "Step1")
    .add(step2(), "Step2")
    .add(step3(), "Step3")
    .add(step4(), "Step4")
    .add(step5(), "Step5")
    .add(step6(), "Step6")
    .add(step7(), "Step7")
    .add(step8(), "Step8")
    .add(step9(), "Step9")
    .add(step10(), "Step10")
    .add(step11(), "Step11");

  //second for loop programatically adds pauses after step 1...
  /*for (i =2; i <8; i++){
  	eval("master.addPause('Step'+i+'', playPause)");
  	}*/

  master.addPause("Step2", playPause)
    .addPause("Step3", playPause)
    .addPause("Step4", playPause)
    .addPause("Step5", playPause)
    .addPause("Step6", playPause)
    .addPause("Step7", playPause)
    .addPause("Step8", playPause)
    .addPause("Step9", playPause)
    .addPause("Step10", playPause)
    .addPause("Step11", playPause);

  master.pause();

  function playPause() {
    $("#play").html("Play");
  }

  function getHeight() {
    if (window.innerHeight <= 320) {
      h = window.innerHeight * 0.65;
    } else if (window.innerHeight > 320 && window.innerHeight === 768 && window.innerWidth === 1024) {
      h = window.innerHeight * 0.45;
    } else {
      h = window.innerHeight * 0.75;
    }
    return h;
  }

  function step0() {
    tl = new TimelineMax();
    tl.set("#step0", {
      autoAlpha: 0
    });
    //Hide all buttons except for first initially so we can make them visibile later through onComplete callbacks
    return tl;
  }

  function step1() {
    text = $("#step1");
    tl = new TimelineMax();
    tl.timeScale(0.55)
      .to(text, 0.5, {
        autoAlpha: 1,
        ease: Back.easeOut
      })
      .set(line1, {
        visibility: "visible"
      })
      .staggerFromTo(line1, 0.5, {
        drawSVG: "0%"
      }, {
        drawSVG: "100%"
      }, 0.5)
      .to(text, 0.75, {
        top: "-=100%"
      }, 5)
    return tl;
  }

  function step2() {
    text = $("#step2");
    tl = new TimelineMax();
    tl.timeScale(0.4)
      .to(text, 0.5, {
        autoAlpha: 1,
        ease: Back.easeOut
      })
      .to(line3, 1, {
        drawSVG: "0%"
      }, "v-1-rotate")
      .set(line4, {
        visibility: "visible"
      }, "v-1-rotate")
      .from(line4, 1, {
        drawSVG: "0%"
      }, "v-1-rotate")
      .to(text, 0.75, {
        top: "-=100%"
      }, 2)
    return tl;
  }

  function step3() {
    text = $("#step3");
    tl = new TimelineMax();
    tl.timeScale(0.55)
      .to(text, 0.5, {
        autoAlpha: 1,
        ease: Back.easeOut
      })
      .to(line22, 0.01, {
        visibility: "visible"
      })
      .staggerFromTo(line22, 1, {
        drawSVG: "0%",
        ease: Power4.easeInOut
      }, {
        drawSVG: "100%",
        ease: Power4.easeInOut
      }, 0.45)
      .to(line7, 0.01, {
        visibility: "visible"
      })
      .to(donthide, 0.01, {
        visibility: "visible"
      }, "carrier-in")
      .to(line1, 0.01, {
        visibility: "hidden"
      }, "carrier-in")
      .staggerFromTo(line7, 1, {
        drawSVG: "0%",
        ease: Power4.easeInOut
      }, {
        drawSVG: "100%",
        ease: Power4.easeInOut
      }, 0.45, "carrier-in")
      .to(samplepush, 0.01, {
        visibility: "visible"
      }, "carrier-in")
      .staggerFromTo(samplepush, 1, {
        drawSVG: "0% 100%",
        ease: Power4.easeInOut
      }, {
        drawSVG: "100% 100%",
        ease: Power4.easeInOut
      }, 0.45, "carrier-in+=1.75")
      .staggerFromTo(line22, 1, {
        drawSVG: "0% 100%",
        ease: Power4.easeInOut
      }, {
        drawSVG: "100% 100%",
        ease: Power4.easeInOut
      }, 0.45, "carrier-in+=2")
      .to(text, 0.75, {
        top: "-=100%"
      }, 7);
    return tl;
  }

  function step4() {
    text = $("#step4");
    tl = new TimelineMax();
    tl.timeScale(0.55)
      .to(text, 0.5, {
        autoAlpha: 1,
        ease: Back.easeOut
      })
      .set([column1], {
        fill: "#4E8AF4"
      })
      .to([column1], 1, {
        fill: "#ED3B41",
        repeat: 2
      })
      .to([column1], 1.5, {
        fill: "#4E8AF4"
      })
      .to(text, 0.75, {
        top: "-=100%"
      }, 6);
    return tl;
  }

  function step5() {
    text = $("#step5");
    tl = new TimelineMax();
    tl.timeScale(0.55)
      .to(text, 0.5, {
        autoAlpha: 1,
        ease: Back.easeOut
      })
      .set(slug1, {
        visibility: "visible"
      })
      .staggerFromTo(slug1, 1, {
        drawSVG: "0%",
        ease: Power4.easeInOut
      }, {
        drawSVG: "100%",
        ease: Power4.easeInOut
      }, 0.45)
      .staggerFromTo(slug1, 1, {
        drawSVG: "0 100%",
        ease: Power4.easeInOut
      }, {
        drawSVG: "100% 100%",
        ease: Power4.easeInOut
      }, 0.45, "slug1")
      .set(slug2, {
        visibility: "visible"
      }, "slug1+=0.01")
      .staggerFromTo(slug2, 1, {
        drawSVG: "0%",
        ease: Power4.easeInOut
      }, {
        drawSVG: "100%",
        ease: Power4.easeInOut
      }, 0.45, "slug1+=0.01")
      .staggerFromTo(slug2, 1, {
        drawSVG: "0 100%",
        ease: Power4.easeInOut
      }, {
        drawSVG: "100% 100%",
        ease: Power4.easeInOut
      }, 0.45, "slug2")
      .set(slug3, {
        visibility: "visible"
      }, "slug2+=0.01")
      .staggerFromTo(slug3, 1, {
        drawSVG: "0%",
        ease: Power4.easeInOut
      }, {
        drawSVG: "100%",
        ease: Power4.easeInOut
      }, 0.45, "slug2+=0.01")
      .staggerFromTo(slug3, 1, {
        drawSVG: "0 100%",
        ease: Power4.easeInOut
      }, {
        drawSVG: "100% 100%",
        ease: Power4.easeInOut
      }, 0.45, "slug3")
      .staggerFromTo(slug2, 1, {
        drawSVG: "0%",
        ease: Power4.easeInOut
      }, {
        drawSVG: "100%",
        ease: Power4.easeInOut
      }, 0.45, "slug3+=0.01")

    .to(text, 0.75, {
      top: "-=100%"
    }, 15);
    return tl;
  }

  function step6() {
    text = $("#step6");
    tl = new TimelineMax();
    tl.timeScale(0.55)
      .to(text, 0.5, {
        autoAlpha: 1,
        ease: Back.easeOut
      })
      .set([column2], {
        fill: "#3DC862"
      })
      .to([column2], 1, {
        fill: "#4E8AF4",
        repeat: 2
      })
      .to([column2], 1.5, {
        fill: "#3DC862"
      })
      .to(text, 0.75, {
        top: "-=100%"
      }, 5);
    return tl;
  }

  function step7() {
    text = $("#step7");
    tl = new TimelineMax();
    tl.timeScale(0.55)
      .to(text, 0.5, {
        autoAlpha: 1,
        ease: Back.easeOut
      })
      .to(line3, 0.5, {
        drawSVG: "0%"
      }, {
        drawSVG: "100%"
      }, 0.5, "v1-rotate-back")
      .from(line3, 0, {
        drawSVG: "0%"
      }, 0.5, "v1-rotate-back")
      .to(line3, 1, {
        drawSVG: "100%",
        stroke: "#000000"
      }, 0.5, "v1-rotate-back")
      .to(line4, 0.5, {
        drawSVG: "100%"
      }, {
        drawSVG: "0%"
      }, 0.5, "v1-rotate-back")
      .from(line4, 0, {
        drawSVG: "100%"
      }, "v1-rotate-back")
      .to(line4, 1, {
        drawSVG: "0%"
      }, 0.5, "v1-rotate-back")
      .to(line10, 0.5, {
        drawSVG: "100%"
      }, {
        drawSVG: "0%"
      }, 0.5, "v1-rotate-back")
      .from(line10, 0, {
        drawSVG: "100%"
      }, 0.5, "v1-rotate-back")
      .to(line10, 1, {
        drawSVG: "0%"
      }, 0.5, "v1-rotate-back")
      .to([backflush1], 1, {
        stroke: "#000000"
      }, 0.5, "v1-rotate-back")
      .to([line4], 1, {
        stroke: "#000000"
      }, 0.5, "v1-rotate-back")
      .set(line11a, {
        visibility: "visible"
      })
      .staggerFromTo(line11a, 1, {
        drawSVG: "0%",
        ease: Power4.easeInOut
      }, {
        drawSVG: "100%",
        ease: Power4.easeInOut
      }, 0.45, "bf1")
      .set(line12, {
        visibility: "visible"
      }, "bf1+=3.01")
      .staggerFromTo(line12, 1, {
        drawSVG: "0%",
        ease: Power4.easeInOut
      }, {
        drawSVG: "100%",
        ease: Power4.easeInOut
      }, 0.45, "bf1+=3.01")
      .staggerFromTo(line12, 1, {
        drawSVG: "0 100%",
        ease: Power4.easeInOut
      }, {
        drawSVG: "100% 100%",
        ease: Power4.easeInOut
      }, 0.5, "bf2")
      .set(line11b, {
        visibility: "visible"
      }, "bf2-=0.15")
      .staggerFromTo(line11b, 1, {
        drawSVG: "0%",
        ease: Power4.easeInOut
      }, {
        drawSVG: "100%",
        ease: Power4.easeInOut
      }, 0.45, "bf2-=0.15")
      .staggerFromTo(line11a, 0.5, {
        drawSVG: "0 100%",
        ease: Power4.easeInOut
      }, {
        drawSVG: "100% 100%",
        ease: Power4.easeInOut
      }, 0.2, "bf2+=1.3")
      .staggerFromTo(line11b, 0.5, {
        drawSVG: "0 100%",
        ease: Power4.easeInOut
      }, {
        drawSVG: "100% 100%",
        ease: Power4.easeInOut
      }, 0.2, "bf2+=2.3")
      .to(text, 0.75, {
        top: "-=100%"
      }, 12)
    return tl;
  }

  function step8() {
    text = $("#step8");
    tl = new TimelineMax();
    tl.timeScale(0.55)
      .to(text, 0.5, {
        autoAlpha: 1,
        ease: Back.easeOut
      })
      .to(line14, 0.01, {
        visibility: "visible"
      })
      .staggerFromTo(line14, 0.5, {
        drawSVG: "0%"
      }, {
        drawSVG: "100%"
      }, 0.5)
      .from(line14, 0, {
        drawSVG: "0%"
      })
      .to(line14, 1, {
        drawSVG: "100%"
      })
      .to([ecd], 1, {
        fill: "purple",
        repeat: 3
      })
      .to(text, 0.75, {
        top: "-=100%"
      }, 9);
    return tl;
  }

  function step9() {
    text = $("#step9");
    tl = new TimelineMax();
    tl.timeScale(0.55)
      .to(text, 0.5, {
        autoAlpha: 1,
        ease: Back.easeOut
      })
      .set(line15, {
        visibility: "visible"
      })
      .set(line14, {
        visibility: "hidden"
      })
      .fromTo(line15, 0.5, {
        drawSVG: "0%"
      }, {
        drawSVG: "100%"
      }, 0.5)
      .from(line15, 0, {
        drawSVG: "0%"
      })
      .to(line15, 1, {
        drawSVG: "100%"
      })
      .fromTo(line16, 0.5, {
        drawSVG: "100%"
      }, {
        drawSVG: "0%"
      }, 0.5)
      .from(line16, 0, {
        drawSVG: "100%"
      })
      .to(line16, 1, {
        drawSVG: "0%"
      })
      .set(line17, {
        visibility: "visible"
      })
      .staggerFromTo(line17, 0.5, {
        drawSVG: "0%"
      }, {
        drawSVG: "100%"
      }, 0.5, "scrollstart")
      .to(window, 4, {
        scrollTo: {
          y: getHeight(h)
        }
      }, "scrollstart+=1")
      .from(line17, 0, {
        drawSVG: "0%"
      })
      .to(line17, 1, {
        drawSVG: "100%"
      })
      .to([fid], 1, {
        fill: "#F87F08",
        repeat: 3
      })
      .to(text, 0.75, {
        top: "-=100%"
      }, 12);
    return tl;
  }

  function step10() {
    text = $("#step10");
    tl = new TimelineMax();
    tl.timeScale(0.55)
      .to(text, 0.5, {
        autoAlpha: 1,
        ease: Back.easeOut
      })
      .set(line18, {
        visibility: "visible"
      })
      .set(line17, {
        visibility: "hidden"
      })
      .fromTo(line18, 0.5, {
        drawSVG: "0%"
      }, {
        drawSVG: "100%"
      }, 0.5)
      .from(line18, 0, {
        drawSVG: "0%"
      })
      .to(line18, 1, {
        drawSVG: "100%"
      })
      .fromTo(line19, 0.5, {
        drawSVG: "100%"
      }, {
        drawSVG: "0%"
      }, 0.5)
      .from(line19, 0, {
        drawSVG: "100%"
      })
      .to(line19, 1, {
        drawSVG: "0%"
      }, "scrollstart2")
      .to(window, 5, {
        scrollTo: {
          y: 0
        }
      }, "scrollstart2+=1")
      .set(line20, {
        visibility: "visible"
      })
      .staggerFromTo(line20, 0.5, {
        drawSVG: "0%"
      }, {
        drawSVG: "100%"
      }, 0.5)
      .from(line20, 0, {
        drawSVG: "0%"
      })
      .to(line20, 1, {
        drawSVG: "100%"
      }, "scrollstart3")
      .to(window, 5, {
        scrollTo: {
          y: getHeight(h)
        }
      }, "scrollstart3+=1")
      .to([methanizer], 1, {
        fill: "#FA77E9",
        repeat: 3
      })
      .to(text, 0.75, {
        top: "-=100%"
      }, 18);
    return tl;
  }

  function step11() {
    text = $("#step11");
    tl = new TimelineMax();
    tl.timeScale(0.55)
      .to(text, 0.5, {
        autoAlpha: 1,
        ease: Back.easeOut
      })
    tl.to(line21, 0.01, {
        visibility: "visible"
      })
      .staggerFromTo(line21, 0.5, {
        drawSVG: "0%"
      }, {
        drawSVG: "100%"
      }, 0.5, "end")
      .from(line21, 0, {
        drawSVG: "0%"
      })
      .to(line21, 1, {
        drawSVG: "100%"
      })
      .to([fid], 0.01, {
        fill: "#BFDEFF"
      })
      .to([fid], 1, {
        fill: "#F87F08",
        repeat: 3
      }, "scrollstart4")
      .to(window, 3, {
        scrollTo: {
          y: 0
        },
        ease: Power2.easeOut
      }, "scrollstart4+=3")
      .to(text, 0.75, {
        top: "-=100%"
      }, 10);
    return tl;
  }
});
              
            
!
999px

Console