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="wrapper">
  <div class="section">
    <div class="content">
         <h3>Keep scrolling to see animation</h3>
    <p>Compellingly seize accurate interfaces whereas team building alignments. Professionally coordinate integrated strategic theme areas whereas orthogonal innovation. Competently reinvent client-centric data without worldwide benefits. Conveniently provide access to error-free testing procedures before visionary meta-services. Rapidiously productize economically sound relationships whereas team building web-readiness.

  Rapidiously orchestrate 24/7 niches rather than extensive communities. Appropriately disseminate backward-compatible alignments through empowered schemas. Seamlessly strategize long-term high-impact paradigms through client-centric relationships. Objectively syndicate diverse experiences through inexpensive results. Rapidiously develop worldwide leadership skills and cost effective human capital.

      Globally syndicate resource sucking strategic.</p>
    </div>
    <div class="content">
         <h3>Keep scrolling to see animation</h3>
    <p>Compellingly seize accurate interfaces whereas team building alignments. Professionally coordinate integrated strategic theme areas whereas orthogonal innovation. Competently reinvent client-centric data without worldwide benefits. Conveniently provide access to error-free testing procedures before visionary meta-services. Rapidiously productize economically sound relationships whereas team building web-readiness.

  Rapidiously orchestrate 24/7 niches rather than extensive communities. Appropriately disseminate backward-compatible alignments through empowered schemas. Seamlessly strategize long-term high-impact paradigms through client-centric relationships. Objectively syndicate diverse experiences through inexpensive results. Rapidiously develop worldwide leadership skills and cost effective human capital.

      Globally syndicate resource sucking strategic.</p>
    </div>
    <div class="content">
         <h3>Keep scrolling to see animation</h3>
    <p>Compellingly seize accurate interfaces whereas team building alignments. Professionally coordinate integrated strategic theme areas whereas orthogonal innovation. Competently reinvent client-centric data without worldwide benefits. Conveniently provide access to error-free testing procedures before visionary meta-services. Rapidiously productize economically sound relationships whereas team building web-readiness.

  Rapidiously orchestrate 24/7 niches rather than extensive communities. Appropriately disseminate backward-compatible alignments through empowered schemas. Seamlessly strategize long-term high-impact paradigms through client-centric relationships. Objectively syndicate diverse experiences through inexpensive results. Rapidiously develop worldwide leadership skills and cost effective human capital.

      Globally syndicate resource sucking strategic.</p>
    </div>
    <div class="content">
         <h3>Keep scrolling to see animation</h3>
    <p>Compellingly seize accurate interfaces whereas team building alignments. Professionally coordinate integrated strategic theme areas whereas orthogonal innovation. Competently reinvent client-centric data without worldwide benefits. Conveniently provide access to error-free testing procedures before visionary meta-services. Rapidiously productize economically sound relationships whereas team building web-readiness.

  Rapidiously orchestrate 24/7 niches rather than extensive communities. Appropriately disseminate backward-compatible alignments through empowered schemas. Seamlessly strategize long-term high-impact paradigms through client-centric relationships. Objectively syndicate diverse experiences through inexpensive results. Rapidiously develop worldwide leadership skills and cost effective human capital.

      Globally syndicate resource sucking strategic.</p>
    </div>
  </div>
  
  <div class="flex-parent animation-element">
    
    <div class="flex-item">
      <div class="svg-wrapper">
      <div class="svg-container">
    <svg  viewBox="0 0 356 356" style="border:solid 0px black" preserveAspectRatio="xMinYMin meet" class="svg-content">
   
    <defs>
      <path d="M3.26 0.75C2 0.75 0.98 1.78 0.98 3.04L0.98 5.32 114.7 5.32 114.7 3.04C114.7 1.77 113.68 0.75 112.42 0.75L3.26 0.75Z" id="path-1"/>
      <path d="M65.84 0.05L0.53 0.05C0.53 0.05 29.77 15.29 65.84 15.29 101.91 15.29 131.76 0.05 131.76 0.05L65.84 0.05Z" id="path-3"/>
    </defs>
<!-- Background Circle -->
<g id="background"> 
	<g id="bg-circle" transform="translate(-47.000000, -145.000000)">
		<path class="bg-circle-color" d="M225,500.6c98.3,0,178-79.4,178-177.3S323.2,146,225,146S47,225.4,47,323.3S126.7,500.6,225,500.6z"/>
	</g>
</g>
<!-- Printer Front-Bottom -->
<g id="front-bottom" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" transform="translate(76.000000, 222.000000)">
    <path d="M203.21 1.36C203.21 1.36 203.21 7.23 203.21 7.23 203.21 10.57 200.49 13.27 197.17 13.27L6.45 13.27C3.11 13.27 0.41 10.57 0.41 7.22L0.41 1.3C0.41 0.58 203.21 3.39 203.21 1.36Z" id="Front-Panel-Bottom" fill="#E7E7E7"/>
    <path d="M158.7 0.32L158.7 2.61C158.7 3.87 157.69 4.89 156.42 4.89L47.26 4.89C46 4.89 44.98 3.88 44.98 2.61L44.98 0.32 158.7 0.32Z" id="Front-Hole-Bottom" fill="#8F8E8E"/>
</g> 
<!-- Printer Top-Panel -->
<g id="top-panel-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" transform="translate(85.000000, 114.000000)">
    <polygon fill="#F9F9F9" points="0.33 18 0.33 17.91 6.85 0.31 179.92 0.01 186.15 17.91 186.15 18"/>
    <path d="M45.19 14.89C45.44 14.4 46.1 14 46.64 14L137.48 14C138.03 14 138.68 14.41 138.92 14.89L140.54 18.11 44.65 17.86C44.1 17.86 43.86 17.46 44.12 16.96L45.19 14.89Z" id="Top-Feed-1" fill="#B9B9B9"/>
</g>
<!-- File -->
<g id="filewrapper">
   <g id="file" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" transform="translate(133.000000, 55.000000)">
      <polyline id="Paper-Body" fill="#F6A623" points="0.12 0 72.17 0 86.12 14.41 86.12 92.54 0.24 92.54"/>
      <polygon id="Paper-Top-Right-Fold" fill="#AA7216" points="70.88 0 70.88 15.83 86.84 15.83"/>
      <text id="AI-Text" font-family="MyriadPro-Bold, Myriad Pro" font-size="49.52" font-weight="bold" letter-spacing="-1.57" fill="#FFFFFF">
      <tspan x="20.82" y="63.66">
         Ai
      </tspan>
     </text>
  </g>
<!-- File- Tag -->
<g id="file-tag-group" transform="translate(70.000000, 40.000000)">
  <g id="background-color">
    <defs><rect id="SVGID_1_" x="-80" y="-35.9" width="496" height="363"/></defs><defs>
    <path id="SVGID_2_" d="M29.5 27c0-3.3 2.7-6 6-6h35.4c3.3 0 6 2.7 6 6v14.9c0 3.3-2.7 6-6 6H35.5c-3.3 0-6-2.7-6-6V27L29.5 27z"/>
    </defs>
    <defs>
      <path id="SVGID_3_" d="M8.5 0h89.4v68.9H8.5V0zM30.5 27c0-2.8 2.2-5 5-5h35.4c2.8 0 5 2.2 5 5v14.9c0 2.8-2.2 5-5 5H35.5c-2.8 0-5-2.2-5-5V27L30.5 27zM28.5 27v14.9c0 3.9 3.1 7 7 7h35.4c3.9 0 7-3.1 7-7V27c0-3.9-3.1-7-7-7H35.5C31.6 20 28.5 23.1 28.5 27L28.5 27z"/>
    </defs>
    <clipPath id="SVGID_4_"><use xlink:href="#SVGID_1_"/></clipPath>
    <clipPath id="SVGID_5_" class="sta"><use xlink:href="#SVGID_2_"/></clipPath>
    <clipPath id="SVGID_6_" class="stb"><use xlink:href="#SVGID_3_"/></clipPath>
    <path class="stc" d="M29.5 27c0-3.3 2.7-6 6-6h35.4c3.3 0 6 2.7 6 6v14.9c0 3.3-2.7 6-6 6H35.5c-3.3 0-6-2.7-6-6V27L29.5 27z"/></g><g id="stroke">
    <defs>
      <rect id="SVGID_7_" x="-80" y="-35.9" width="496" height="363"/></defs>
    <defs>
      <path id="SVGID_8_" d="M29.5 27c0-3.3 2.7-6 6-6h35.4c3.3 0 6 2.7 6 6v14.9c0 3.3-2.7 6-6 6H35.5c-3.3 0-6-2.7-6-6V27L29.5 27z"/>
    </defs>
    <clipPath id="SVGID_9_"><use xlink:href="#SVGID_7_"/></clipPath>
    <clipPath id="SVGID_10_" class="std"><use xlink:href="#SVGID_8_"/></clipPath>
    <path class="ste" d="M29.5 27c0-3.3 2.7-6 6-6h35.4c3.3 0 6 2.7 6 6v14.9c0 3.3-2.7 6-6 6H35.5c-3.3 0-6-2.7-6-6V27L29.5 27z"/></g>
    <path id="file-text" class="stf" d="M41.6 33.9h1.3v7h2.3v-7H47v-1.8h-1.7v-0.6c0-0.4 0.1-0.7 0.2-0.9 0.1-0.2 0.4-0.2 0.7-0.2 0.3 0 0.7 0 1.1 0.1l0.3-1.6c-0.6-0.2-1.3-0.3-1.9-0.3 -0.6 0-1.2 0.1-1.6 0.3 -0.4 0.2-0.7 0.5-0.9 0.9s-0.2 0.9-0.2 1.7v0.7h-1.3V33.9L41.6 33.9zM50.5 30.9v-2.2h-2.3v2.2H50.5L50.5 30.9zM50.5 40.9v-8.8h-2.3v8.8H50.5L50.5 40.9zM55 40.9V28.8h-2.3v12.1H55L55 40.9zM61.8 39.1c-0.2 0.2-0.6 0.3-0.9 0.3 -0.5 0-1-0.2-1.3-0.6 -0.4-0.4-0.5-0.9-0.6-1.6h5.8c0-1.8-0.3-3.1-1.1-4 -0.8-0.9-1.8-1.3-3.1-1.3 -1.2 0-2.1 0.4-2.9 1.2 -0.8 0.8-1.1 2-1.1 3.4 0 1.2 0.3 2.2 0.9 3 0.7 1 1.9 1.5 3.4 1.5 1 0 1.8-0.2 2.4-0.7 0.6-0.4 1.1-1.1 1.4-1.9l-2.3-0.4C62.2 38.5 62.1 38.9 61.8 39.1L61.8 39.1zM59 35.8c0-0.6 0.2-1.1 0.5-1.5 0.3-0.4 0.8-0.6 1.3-0.6 0.5 0 0.9 0.2 1.2 0.5 0.3 0.4 0.5 0.9 0.5 1.5H59L59 35.8z"/>
  </g>
</g>
      
<!-- Printer Paper -->
<g id="printer-paper" transform="translate(100.000000, 115.000000)">
<g id="end_3_">
	<g id="end"> <!-- Printer Paper End Graphic -->
		<polygon id="paper-base_1_" class="st0 start1" points="147.8,107.5 7.8,107.5 29.3,25.5 126.3,25.5 		"/>
		<polygon class="st1 start2" points="139.5,103.2 16,103.2 19.8,87.1 135.7,87.1 		"/>
		<polygon class="st1 start3" points="74.8,82.9 20.8,82.9 24,69.1 75,69.1 		"/>
		<polygon class="st1 start4" points="134.7,82.9 80.7,82.9 80.6,77.8 133.5,77.8 		"/>
		<polygon class="st1 start5" points="75.1,65.1 25,65.1 27.7,53.3 75.2,53.3 		"/>
		<polygon class="st1 start6" points="124.6,39.8 30.9,39.8 33.5,28.7 122,28.7 		"/>
		<polygon class="st1 start7" points="132.8,73.9 80.7,73.9 80.7,69.1 131.7,69.1 		"/>
		<polygon class="st1 start8" points="130.6,65.4 80.4,65.4 80.4,61 129.6,61 		"/>
		<polygon class="st1 start9" points="128.7,57.1 80.3,57.1 80.3,53 127.7,53 		"/>
		<polygon class="st1 start10" points="127,49.8 80.3,49.8 80.2,46 126.1,46 		"/>
	</g>
</g>
<g id="start"> <!-- Printer Paper Start Graphic -->
	<g id="start_1_">
		<rect id="paper-base" x="29.3" y="25.4" class="st0 end1" width="97" height="82"/>
		<rect x="34.3" y="92.1" class="st1 end2" width="86.9" height="12.3"/>
		<rect x="34.3" y="76.4" class="st1 end3" width="41.3" height="12.3"/>
		<rect x="80" y="84.2" class="st1 end4" width="41.3" height="4.4"/>
		<rect x="34.3" y="60.3" class="st1 end5" width="41.3" height="12.3"/>
		<rect x="34.3" y="29.9" class="st1 end6" width="86.9" height="14.6"/>
		<rect x="80.1" y="76.4" class="st1 end7" width="41.3" height="4.4"/>
		<rect x="80" y="68.4" class="st1 end8" width="41.3" height="4.4"/>
		<rect x="80" y="60" class="st1 end9" width="41.3" height="4.4"/>
		<rect x="80" y="52.1" class="st1 end10" width="41.3" height="4.4"/>
	</g>
</g>
</g> 
  <defs>
    <mask id="mask" x="39.6" y="83.9" width="123.7" height="14.5" maskUnits="userSpaceOnUse">
      <g transform="translate(-0.4 -0.9)">
        <g id="mask-2">
          <g id="g3689">
            <path id="path-1" d="M47.3,89.8A2.24,2.24,0,0,0,45,92v2.3H158.7V92a2.26,2.26,0,0,0-2.3-2.3H47.3Z" style="fill: #fff"/>
          </g>
        </g>
      </g>
    </mask>
    <mask id="mask-2-2" x="31.1" y="18.1" width="141.3" height="25.3" maskUnits="userSpaceOnUse">
      <g transform="translate(-0.4 -0.9)">
        <g id="mask-4">
          <g id="g3701">
            <path id="path-3" d="M101.8,24H36.5s29.2,15.2,65.3,15.2S167.7,24,167.7,24Z" style="fill: #fff"/>
          </g>
        </g>
      </g>
    </mask>
    <clipPath id="clip-path" transform="translate(-0.4 -0.9)">
      <path d="M191.3,39.8A3.78,3.78,0,0,0,195,36a3.71,3.71,0,0,0-3.7-3.8,3.78,3.78,0,0,0-3.7,3.8,3.85,3.85,0,0,0,3.7,3.8Z" style="fill: none"/>
    </clipPath>
    <clipPath id="clip-path-2" transform="translate(-0.4 -0.9)">
      <path d="M191,47.4a2.56,2.56,0,0,0,2.5-2.6,2.5,2.5,0,0,0-2.5-2.6,2.56,2.56,0,0,0-2.5,2.6,2.5,2.5,0,0,0,2.5,2.6Z" style="fill: none"/>
    </clipPath>
  </defs>
  
<!-- Printer Body -->
<!-- <g id="Printer-Body" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" transform="translate(76.000000, 130.000000)"> -->
<g id="whole-printer" transform="translate(76.4, 131.000000)">
  <g id="Printer">
    <g id="Printer-Body">
      <g id="g3710">
        <polygon id="Front-Fill" points="0 23.4 0 82.7 0 93.1 202.8 93.1 202.8 82.7 202.8 23.4 0 23.4" style="fill: #e7e7e7"/>
        <g id="Bottom-Feed">
          <g style="mask: url(#mask)">
            <polygon id="Fill-2" points="39.6 98.4 163.3 98.4 163.3 83.9 39.6 83.9 39.6 98.4" style="fill: #8e8e8e"/>
          </g>
        </g>
        <g id="Fronot-Decor">
          <g style="mask: url(#mask-2-2)">
            <polygon id="Fill-5" points="31.1 43.4 172.4 43.4 172.4 18.1 31.1 18.1 31.1 43.4" style="fill: #a7a6a6"/>
          </g>
        </g>
        <polygon id="Top" points="8.9 0 0.3 23.4 203.1 23.9 194.8 0 8.9 0" style="fill: #f9f9f9"/>
        <polygon id="Vent-3" points="6.9 36.3 29.1 36.3 29.1 31 6.9 31 6.9 36.3" style="fill: #fff"/>
        <polygon id="Vent-2" points="6.9 43.2 29.1 43.2 29.1 37.9 6.9 37.9 6.9 43.2" style="fill: #fff"/>
        <polygon id="Vent-1" points="6.9 50.1 29.1 50.1 29.1 44.7 6.9 44.7 6.9 50.1" style="fill: #fff"/>
      </g>
    </g>
  </g>
  <g id="green-light">
    <g style="clip-path: url(#clip-path)">
      <rect id="rect3720" x="182.3" y="26.3" width="17.3" height="17.6"/>
    </g>
  </g>
  <g id="red-light">
    <g style="clip-path: url(#clip-path-2)">
      <rect id="rect3729" x="183" y="36.2" width="15.1" height="15.3"/>
    </g>
  </g>
</g>
      
 
  <!-- Tap Panel that covers paper -->
  <g id="Top-Panel-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" transform="translate(128.000000, 130.000000)">
    <path d="M1.53 0.89C1.79 0.4 2.45 0 2.99 0L93.82 0C94.37 0 95.02 0.41 95.26 0.89L96.88 4.11 0.99 3.86C0.44 3.86 0.21 3.46 0.46 2.96L1.53     0.89Z" id="Top-Feed-1" fill="#B9B9B9" transform="translate(48.440524, 2.053393) scale(1, -1) translate(-48.440524, -2.053393) "/>
  </g>
</svg>

</div>
      </div>
    </div>
    <div class="flex-item">
      <div class="svg-wrapper"></div>
    </div>
    <div class="flex-item">
      <div class="svg-wrapper"></div>
    </div>
    
 
   
  </div>
  
  
   <div class="section">
    <div class="content">
         <h3>Keep scrolling to see animation</h3>
    <p>Compellingly seize accurate interfaces whereas team building alignments. Professionally coordinate integrated strategic theme areas whereas orthogonal innovation. Competently reinvent client-centric data without worldwide benefits. Conveniently provide access to error-free testing procedures before visionary meta-services. Rapidiously productize economically sound relationships whereas team building web-readiness.

  Rapidiously orchestrate 24/7 niches rather than extensive communities. Appropriately disseminate backward-compatible alignments through empowered schemas. Seamlessly strategize long-term high-impact paradigms through client-centric relationships. Objectively syndicate diverse experiences through inexpensive results. Rapidiously develop worldwide leadership skills and cost effective human capital.

      Globally syndicate resource sucking strategic.</p>
    </div>
    <div class="content">
         <h3>Keep scrolling to see animation</h3>
    <p>Compellingly seize accurate interfaces whereas team building alignments. Professionally coordinate integrated strategic theme areas whereas orthogonal innovation. Competently reinvent client-centric data without worldwide benefits. Conveniently provide access to error-free testing procedures before visionary meta-services. Rapidiously productize economically sound relationships whereas team building web-readiness.

  Rapidiously orchestrate 24/7 niches rather than extensive communities. Appropriately disseminate backward-compatible alignments through empowered schemas. Seamlessly strategize long-term high-impact paradigms through client-centric relationships. Objectively syndicate diverse experiences through inexpensive results. Rapidiously develop worldwide leadership skills and cost effective human capital.

      Globally syndicate resource sucking strategic.</p>
    </div>
    <div class="content">
         <h3>Keep scrolling to see animation</h3>
    <p>Compellingly seize accurate interfaces whereas team building alignments. Professionally coordinate integrated strategic theme areas whereas orthogonal innovation. Competently reinvent client-centric data without worldwide benefits. Conveniently provide access to error-free testing procedures before visionary meta-services. Rapidiously productize economically sound relationships whereas team building web-readiness.

  Rapidiously orchestrate 24/7 niches rather than extensive communities. Appropriately disseminate backward-compatible alignments through empowered schemas. Seamlessly strategize long-term high-impact paradigms through client-centric relationships. Objectively syndicate diverse experiences through inexpensive results. Rapidiously develop worldwide leadership skills and cost effective human capital.

      Globally syndicate resource sucking strategic.</p>
    </div>
    <div class="content">
         <h3>Keep scrolling to see animation</h3>
    <p>Compellingly seize accurate interfaces whereas team building alignments. Professionally coordinate integrated strategic theme areas whereas orthogonal innovation. Competently reinvent client-centric data without worldwide benefits. Conveniently provide access to error-free testing procedures before visionary meta-services. Rapidiously productize economically sound relationships whereas team building web-readiness.

  Rapidiously orchestrate 24/7 niches rather than extensive communities. Appropriately disseminate backward-compatible alignments through empowered schemas. Seamlessly strategize long-term high-impact paradigms through client-centric relationships. Objectively syndicate diverse experiences through inexpensive results. Rapidiously develop worldwide leadership skills and cost effective human capital.

      Globally syndicate resource sucking strategic.</p>
    </div>
  </div> 
</div>
              
            
!

CSS

              
                body {
  background-color:#1e5dc9;
}
#wrapper {
  width:50%;
  margin:0px auto;
  background-color:#f4f4f4;
}
.content {
  padding:50px;
}
.flex-parent {
  display:flex;
  flex-direction: row;
}
.flex-item {
  width:33.4%;
  height:50px;
  background-color:blue;
  padding:2%;
}
.svg-wrapper {
  background-color:red;
  height:100%;
  width:100%;
}
/*.svg-wrapper {
  width:15%;
  margin:0% auto;
  padding:400px;
}*/
.svg-container { 
	display: inline-block;
	position: relative;
	width: 100%;
	padding-bottom: 100%; 
	vertical-align: middle; 
	overflow: hidden; 
}
.svg-content { 
	display: inline-block;
	position: absolute;
	top: 0;
	left: 0;
}
.st0 {
  fill:#FFFFFF;
}
.st1 {
  fill:#D3D3D3;
}
.st2 {
  fill:#D3D3D3;
}
.zt0{filter:url(#Adobe_OpacityMaskFilter);}
.zt1{fill:#FFFFFF;}
.zt2{mask:url(#mask-2);fill:#CF1F1F;}
.bt0{filter:url(#Adobe_OpacityMaskFilter);}
	.bt1{fill:#FFFFFF;}
	.bt2{mask:url(#mask-2);fill:#7ED321;}
#end {
  visibility:hidden;
}
#file {
  position:absoulute;
}
.buttons {
    position: absolute;
    bottom: 20px;
    left: 20px;
    list-style: none;
    margin: 0;
    padding:0;
    right: 20px;
}
.button {
    float: left;
    margin-right: 10px;
    padding: 10px 15px;
    border: 1px #ebebeb solid;
    text-decoration: none;
    color: #222222;
    transition-duration: 0.3s;
}
.button:hover {
  background-color:#18845B;
  color:white;
}
.bg-circle-color{
  fill:#90D898;
  stroke:#5BBF66;
  stroke-width:2;
}
/* File-Tag*/
.sta{clip-path:url(#SVGID_4_);}
.stb{clip-path:url(#SVGID_5_);}
.stc{clip-path:url(#SVGID_6_);fill:#F2A421;}
.std{clip-path:url(#SVGID_9_);}
.ste{clip-path:url(#SVGID_10_);fill:none;stroke:#FFFFFF;stroke-width:4;stroke-miterlimit:10;}
.stf{fill:#FFFFFF;}
/* Green Light */
#rect3720 {
  fill: #7ed21e;
}
/* Red Light */
#rect3729 {
  fill: #ce1d1c;
}


              
            
!

JS

              
                //https://www.sitepoint.com/scroll-based-animations-jquery-css3/
// TweenMax.to(".ease-out", 3, {y:200, repeat:0, ease:Bounce.easeOut});
// TweenMax.to(".ease-out", 3, {scale:0, repeat:5});

  var $btnPlay = $("#btnPlay"),
	    $btnSlowMo = $("#btnSlowMo"),
	    $btnReverse = $("#btnReverse"),
	    tl = new TimelineMax({repeat:10, repeatDelay:0}),
      paper = document.getElementById("printer-paper"),
      file = document.getElementById("file"),
      greenLight = document.getElementById("rect3720");

// Converts all primitive SVG shapes into paths
MorphSVGPlugin.convertToPath("circle, rect, polygon");

var $animation_elements = $('.animation-element');
var $window = $(window);

function check_if_in_view() {
  var window_height = $window.height();
  var window_top_position = $window.scrollTop();
  var window_bottom_position = (window_top_position + window_height);
 
  $.each($animation_elements, function() {
    var $element = $(this);
    var element_height = $element.outerHeight();
    var element_top_position = $element.offset().top;
    var element_bottom_position = (element_top_position + element_height);
 
    //check to see if this current container is within viewport
    if ((element_bottom_position >= window_top_position) &&
        (element_top_position <= window_bottom_position)) {
      
 //1.0 File Wrapper Moves down
tl.to(filewrapper, 1.0, {y:'76', repeat:0, ease:Back.easeIn, delay:2})
//1.1 Label Shrinks to nothing while file moves downward.
.to("#file-tag-group", 0.3, {scale:0, transformOrigin:"75% 25%"}, '-=1.0')
//2.0 Lights on printer blink to show progress. End after paper leaves.
.to("#rect3720", 0.2, {fill:"#58a500", repeat:5, Linear, delay:0}, '-=1.0')
.to("#rect3729", 0.2, {fill:"#ff0000", repeat:5, Linear, delay:0}, '-=1.0')
//3.0 While File moves down the document leaves the printer bottom feed with a slight bounce.
.to(paper, 1, {y:'185', repeat:0, ease:Back.easeOut, delay:0}, '-=0.0' )
//3.1 File expands larger while leaving printer [morphSVG]
.to(".end1", 0.35, {morphSVG:".start1", ease:Linear.easeIn}, '-=1.0'  ) 
.to(".end2", 0.35, {morphSVG:".start2", ease:Linear.easeIn}, '-=1.0' ) 
.to(".end3", 0.35, {morphSVG:".start3", ease:Linear.easeIn}, '-=1.0'  ) 
.to(".end4", 0.35, {morphSVG:".start4", ease:Linear.easeIn}, '-=1.0'  ) 
.to(".end5", 0.35, {morphSVG:".start5", ease:Linear.easeIn}, '-=1.0'  ) 
.to(".end6", 0.35, {morphSVG:".start6", ease:Linear.easeIn}, '-=1.0'  ) 
.to(".end7", 0.35, {morphSVG:".start7", ease:Linear.easeIn}, '-=1.0'  ) 
.to(".end8", 0.35, {morphSVG:".start8", ease:Linear.easeIn}, '-=1.0'  ) 
.to(".end9", 0.35, {morphSVG:".start9", ease:Linear.easeIn}, '-=1.0'  ) 
.to(".end10", 0.35, {morphSVG:".start10", ease:Linear.easeIn}, '-=1.0'  ) 
console.log("Scroll Event Trigger");    
    } else {
      $element.removeClass('in-view'); // Animation Goes Here
    }
  });
}

$window.on('scroll resize', check_if_in_view);
$window.trigger('scroll');


























//1.0 File Wrapper Moves down
tl.to(filewrapper, 1.0, {y:'76', repeat:0, ease:Back.easeIn, delay:2})
//1.1 Label Shrinks to nothing while file moves downward.
.to("#file-tag-group", 0.3, {scale:0, transformOrigin:"75% 25%"}, '-=1.0')
//2.0 Lights on printer blink to show progress. End after paper leaves.
.to("#rect3720", 0.2, {fill:"#58a500", repeat:5, Linear, delay:0}, '-=1.0')
.to("#rect3729", 0.2, {fill:"#ff0000", repeat:5, Linear, delay:0}, '-=1.0')
//3.0 While File moves down the document leaves the printer bottom feed with a slight bounce.
.to(paper, 1, {y:'185', repeat:0, ease:Back.easeOut, delay:0}, '-=0.0' )
//3.1 File expands larger while leaving printer [morphSVG]
.to(".end1", 0.35, {morphSVG:".start1", ease:Linear.easeIn}, '-=1.0'  ) 
.to(".end2", 0.35, {morphSVG:".start2", ease:Linear.easeIn}, '-=1.0' ) 
.to(".end3", 0.35, {morphSVG:".start3", ease:Linear.easeIn}, '-=1.0'  ) 
.to(".end4", 0.35, {morphSVG:".start4", ease:Linear.easeIn}, '-=1.0'  ) 
.to(".end5", 0.35, {morphSVG:".start5", ease:Linear.easeIn}, '-=1.0'  ) 
.to(".end6", 0.35, {morphSVG:".start6", ease:Linear.easeIn}, '-=1.0'  ) 
.to(".end7", 0.35, {morphSVG:".start7", ease:Linear.easeIn}, '-=1.0'  ) 
.to(".end8", 0.35, {morphSVG:".start8", ease:Linear.easeIn}, '-=1.0'  ) 
.to(".end9", 0.35, {morphSVG:".start9", ease:Linear.easeIn}, '-=1.0'  ) 
.to(".end10", 0.35, {morphSVG:".start10", ease:Linear.easeIn}, '-=1.0'  ) 

// Replay, Slow, Reverse Buttons 
$btnPlay.click(
    function(){
      tl.timeScale(1).seek(0);
    }
	);

	$btnSlowMo.click(
    function(){
      tl.timeScale(0.3).seek(0.5);
    }
	);

	$btnReverse.click(
    function(){
      tl.timeScale(1).seek(".end1").reverse();
    }
	);



              
            
!
999px

Console