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 class="container">
  <svg id="bridge-svg" x="0px" y="0px" viewBox="0 0 5933.347 2028.442" enable-background="new 0 0 5933.347 2028.442" xml:space="preserve">
    <path id="b" data-x="0.6" data-y="1.8" d="M0,1588.016V82.709h515.898c170.232,0,299.821,34.118,388.733,102.353S1038,354.971,1038,490.052 c0,68.928-18.61,130.96-55.829,186.096c-37.219,55.151-91.673,97.876-163.351,128.199c81.319,22.067,144.224,63.583,188.68,124.581 c44.456,60.998,66.684,134.241,66.684,219.696c0,141.298-45.329,249.854-135.953,325.667 c-90.639,75.828-220.389,113.725-389.25,113.725H0z M261.568,716.468h256.398c81.319,0,144.902-18.433,190.748-55.312 c45.831-36.863,68.752-89.073,68.752-156.63c0-74.438-21.194-128.199-63.583-161.283s-108.395-49.625-197.985-49.625H261.568 V716.468z M261.568,908.767v470.408h290.516c82.016,0,146.116-20.321,192.299-60.998c46.168-40.662,69.269-97.183,69.269-169.554 c0-156.454-79.963-236.399-239.857-239.857H261.568z" data-svg-origin="537.0919799804688 835.3625030517578" transform="matrix(1,0,0,1,0,0)" style="transform-origin: 0px 0px;"></path>
    <path id="r" data-x="3" data-y="-51" d="M1897.141,698.892c-33.084-5.51-67.201-8.271-102.353-8.271c-115.111,0-192.651,44.115-232.62,132.335v765.06H1310.94 V469.374h239.856L1557,594.472c60.646-97.183,144.741-145.775,252.263-145.775c35.833,0,65.478,4.828,88.912,14.474 L1897.141,698.892z" data-svg-origin="1604.5574340820312 1018.3565368652344" transform="matrix(1,0,0,1,0,0)" style="transform-origin: 0px 0px;"></path>
    <path id="i" data-x="-.6" data-y="60" d="M2056.356,178.859c0-38.594,12.23-70.644,36.702-96.149c24.457-25.491,59.447-38.253,104.937-38.253 c45.49,0,80.641,12.762,105.454,38.253c24.813,25.506,37.219,57.556,37.219,96.149c0,37.912-12.406,69.445-37.219,94.599 c-24.813,25.169-59.964,37.736-105.454,37.736c-45.49,0-80.48-12.567-104.937-37.736 C2068.586,248.303,2056.356,216.771,2056.356,178.859z M2323.093,1588.016h-251.229V469.374h251.229V1588.016z" data-svg-origin="2198.511962890625 816.2364730834961" transform="matrix(1,0,0,1,0,0)" style="transform-origin: 0px 0px;"></path>
    <path id="d" data-x="-3" data-y="-45" d="M2549.509,1020.424c0-172.299,39.965-310.676,119.928-415.097c79.948-104.42,187.13-156.63,321.532-156.63 c118.539,0,214.351,41.355,287.414,124.064V0h251.229v1588.016h-227.45l-12.406-115.793 c-75.131,90.98-175.416,136.47-300.854,136.47c-130.96,0-236.931-52.727-317.913-158.181 C2589.991,1345.057,2549.509,1201.706,2549.509,1020.424z M2800.738,1042.135c0,113.725,21.872,202.476,65.65,266.22 c43.763,63.759,105.971,95.632,186.613,95.632c102.693,0,177.825-45.831,225.383-137.504V788.838 c-46.183-89.59-120.621-134.402-223.315-134.402c-81.334,0-144.063,32.226-188.163,96.666 C2822.79,815.558,2800.738,912.561,2800.738,1042.135z" data-svg-origin="3039.560546875 804.3464965820312" transform="matrix(1,0,0,1,0,0)" style="transform-origin: 0px 0px;"></path>
    <path id="g" data-x="15" data-y="54" d="M3747.758,1020.424c0-173.689,40.838-312.388,122.513-416.13c81.675-103.727,190.055-155.597,325.15-155.597 c127.506,0,227.791,44.456,300.854,133.368l11.373-112.691h226.416v1084.524c0,146.809-45.666,262.601-136.987,347.378 c-91.336,84.777-214.527,127.165-369.606,127.165c-82.031,0-162.156-17.059-240.374-51.176 c-78.233-34.118-137.68-78.75-178.342-133.885l118.894-150.944c77.184,91.658,172.299,137.504,285.347,137.504 c83.387,0,149.217-22.584,197.468-67.718c48.236-45.149,72.371-111.496,72.371-199.019v-75.472 c-72.371,80.641-168.875,120.962-289.482,120.962c-130.96,0-237.965-52.034-321.015-156.114 C3789.274,1348.515,3747.758,1204.452,3747.758,1020.424z M3997.953,1042.135c0,112.35,22.906,200.746,68.752,265.186 c45.831,64.455,109.413,96.666,190.748,96.666c101.319,0,176.435-43.422,225.382-130.267V781.601 c-47.558-84.777-121.996-127.165-223.314-127.165c-82.709,0-146.985,32.743-192.816,98.217 C4020.859,818.143,3997.953,914.629,3997.953,1042.135z" data-svg-origin="4240.9110107421875 1238.569091796875" transform="matrix(1,0,0,1,0,0)" style="transform-origin: 0px 0px;"></path>
    <path id="e" data-x="3" data-y="-42" d="M5484.65,1608.693c-159.215,0-288.287-50.142-387.182-150.427c-98.91-100.285-148.359-233.814-148.359-400.622v-31.016 c0-111.657,21.535-211.425,64.617-299.304c43.066-87.878,103.547-156.275,181.443-205.222 c77.881-48.932,164.726-73.404,260.534-73.404c152.319,0,270,48.592,353.065,145.775c83.05,97.183,124.581,234.687,124.581,412.512 v101.319h-730.942c7.578,92.37,38.414,165.418,92.531,219.179c54.102,53.761,122.157,80.641,204.188,80.641 c115.1,0,208.841-46.524,281.211-139.572l135.436,129.233c-44.812,66.86-104.596,118.733-179.375,155.597 C5661.602,1590.244,5577.698,1608.693,5484.65,1608.693z M5454.668,650.301c-68.928,0-124.581,24.135-166.969,72.37 c-42.388,48.251-69.445,115.452-81.158,201.604h478.679v-18.61c-5.525-84.084-27.915-147.667-67.201-190.748 C5578.732,671.851,5524.278,650.301,5454.668,650.301z" data-svg-origin="5441.22900390625 1028.695556640625" transform="matrix(1,0,0,1,0,0)" style="transform-origin: 0px 0px;"></path>
  </svg>
</div>
              
            
!

CSS

              
                html,
body {
  margin: 0;
  padding: 0;
}

.container {
  height: 200vh;
}

              
            
!

JS

              
                const { innerHeight } = window;

gsap.from("path", {
  scale: 4, stagger: 0.25, duration: 1,
  scrollTrigger: {
    trigger: ".container",
    pin: true,
    end: `+=${innerHeight * 1.8}`,
    scrub: 0.5
  }
});
              
            
!
999px

Console