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

              
                <svg xmlns="http://www.w3.org/2000/svg" width="200" height="300" viewBox="0 0 581 612" fill="none">
  <path id="blob1" fill-rule="evenodd" clip-rule="evenodd" d="M287.837 2.2674C388.308 12.1501 446.49 110.194 502.246 194.357C549.804 266.147 600.718 349.121 571.212 430.021C543.817 505.132 447.687 513.148 374.356 545.002C307.125 574.207 240.084 633.419 173.489 602.789C106.35 571.908 109.098 481.452 84.6027 411.73C52.6416 320.756 -29.7759 232.613 13.0936 146.242C61.4564 48.8042 179.579 -8.38128 287.837 2.2674Z" />

  <path id="blob2" fill-rule="evenodd" clip-rule="evenodd" d="M267.901 0.479324C325.981 1.75432 386.108 8.51982 432.331 43.7097C478.016 78.4887 505.059 133.045 516.057 189.399C526.208 241.413 496.79 289.76 490.621 342.396C482.218 414.086 524.996 502.415 473.446 552.939C423.251 602.135 335.036 581.481 267.901 560.682C211.954 543.348 183.997 485.093 137.888 448.977C94.2816 414.821 25.6127 406.907 5.62748 355.247C-14.4598 303.324 24.5013 249.453 40.0136 195.985C56.1861 140.241 54.0872 74.1662 98.1395 36.3735C143.138 -2.23103 208.626 -0.821885 267.901 0.479324Z" />
</svg>
              
            
!

CSS

              
                #blob1 {
  fill: rgb(255, 3, 3);
}

#blob2 {
  fill-opacity: 0;
}

              
            
!

JS

              
                gsap.to("#blob1", {
  duration: 2,
  morphSVG: "#blob2",
  ease: "power1.inOut",
  repeat: -1,
  yoyo: true
});

              
            
!
999px

Console