Pen Settings

HTML

CSS

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

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

Auto Save

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="wrapper">
  <svg width="800" height="600" viewBox="0 0 800 600" version="1.1" id="svg5" xmlns="http://www.w3.org/2000/svg">
    <mask id="myMask">
      <path style="fill:#fff;fill-opacity:1;stroke:none;stroke-width:2;stroke-linecap:round;stroke-dasharray:none" id="rect" d="M-50 1H0v600h-50z" />
    </mask>
    <g id="layer2">
      <path style="fill:none;fill-opacity:.996643;stroke:#bebebe;stroke-linecap:round;stroke-width:2.00000057;stroke-dasharray:none" d="M0 204.855s90.106 61.504 196.23-5.352c106.122-66.857 141.572-17.1 303.418-3.673 161.846 13.427 243.058-60.532 243.058-60.532" id="path236" />
      <path style="fill:none;fill-opacity:.996643;stroke:#bebebe;stroke-linecap:round;stroke-width:2.00000057;stroke-dasharray:none" d="M0 277.35s44.947 88.903 189.82 95.51c144.874 6.608 223.828-130.64 343.425-89.911 119.597 40.727 72.019 12.173 209.961 63.97" id="path238" />
      <path style="fill:none;fill-opacity:.996643;stroke:#bebebe;stroke-linecap:round;stroke-width:2.00000057;stroke-dasharray:none" d="M0 509.799s195.317-134.084 437.824-84.687c242.507 49.397 259.255 97.088 290.888 92.226 31.633-4.86 43.52-42.417 43.52-42.417" id="path240" />
    </g>
    <g id="layer1" mask="url(#myMask)">
      <path style="fill:none;fill-opacity:.996643;stroke:#f0f;stroke-linecap:round;stroke-width:2.00000057;stroke-dasharray:none" d="M0 204.855s90.106 61.504 196.23-5.352c106.122-66.857 141.572-17.1 303.418-3.673 161.846 13.427 243.058-60.532 243.058-60.532" id="path236" />
      <path style="fill:none;fill-opacity:.996643;stroke:#f0f;stroke-linecap:round;stroke-width:2.00000057;stroke-dasharray:none" d="M0 277.35s44.947 88.903 189.82 95.51c144.874 6.608 223.828-130.64 343.425-89.911 119.597 40.727 72.019 12.173 209.961 63.97" id="path238" />
      <path style="fill:none;fill-opacity:.996643;stroke:#f0f;stroke-linecap:round;stroke-width:2.00000057;stroke-dasharray:none" d="M0 509.799s195.317-134.084 437.824-84.687c242.507 49.397 259.255 97.088 290.888 92.226 31.633-4.86 43.52-42.417 43.52-42.417" id="path240" />
    </g>
  </svg>
</div>
              
            
!

CSS

              
                * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.wrapper {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

              
            
!

JS

              
                console.clear();

gsap.to("#rect", {
  x: 850,
  duration: 3,
  repeat: -1,
  repeatDelay: 1,
  ease: "none"
});

              
            
!
999px

Console