Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ add another resource


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


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.


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.


                <section class="section">
  <h1>First Section</h1>
  <svg id="linesvg" height="4687" viewBox="0 0 1223 4687" fill="none" xmlns="">
                    <path id="motionPath" class="st0"
                          d="M1214.96 0.390625C1210.99 189.999 1213.31 543.687 1214.96 696.829C1216.83 868.926 8 826.657 8 1009.32V1692.68C8 1820.99 1214.96 1751.05 1214.96 1961.39V2655.31C1214.96 2780.61 611.482 2820.36 611.482 3135.37V4666.13V4687"
                          stroke="#FE4139" stroke-width="15"/>

                    <image id="motionSVG" class="card-img"
<section style="height:500vh"></section>


  height: 100vh


                var animation;

gsap.registerPlugin(MotionPathPlugin, ScrollTrigger);

gsap.set("#motionSVG", { scale: 0.7, autoAlpha: 1 });
//gsap.set(".tractor", {transformOrigin: "50% 50%"});

animation ="#motionSVG", {
  scrollTrigger: {
    trigger: "#motionPath",
    start: "top 20%",
    end: "bottom center",
    scrub: 1,
    markers: true
  duration: 20,
  ease: "true",
  //immediateRender: true,
  motionPath: {
    path: "#motionPath",
    align: "#motionPath",
    alignOrigin: [0.5, 1],
    autoRotate: 90,
    end: 0.9