Animated Curvy SVG Section on Scroll

Is there anything that GSAP cannot animate? In this video I'll show you how to make curvy section transitions with SVG in Figma and how to animate them on scroll by tweening the SVG path d attribute.

Watch the Tutorial on YouTubeGet the Project Cloneable

Inside <head> tag

<script defer src=""></script>
<script defer src=""></script>

Inside </body> tag

window.Webflow ||= [];
window.Webflow.push(() => {

  const pathsToAnimate = document.querySelectorAll(

  pathsToAnimate.forEach((path) => {
    const finalPath = path.getAttribute("wb-final-path");
        scrollTrigger: {
          trigger: path,
          start: "top bottom",
          end: "bottom top",
          scrub: 1
      .to(path, {
        attr: { d: finalPath },
        ease: "none"