Instructions

Use this guide to understand smooth scrolling and configure GSAP animations in the Flowvy Webflow template. Follow the instructions below to customize these features quickly and accurately.
Cloud
Cloud
Cloud

Quick Brief

You can find all the GSAP attributes and instructions for implementing GSAP here. This gives you powerful customization options to make significant changes to this template.

Slide In from Bottom

Animate the element from the bottom when it scrolls into view. Add this attribute to the desired element.
[gsap-animate=slide-in-from-bottom]
Default animation delay: 0.2s.
[gsap-animate=slide-in-from-bottom-0.4]
Animation delay: 0.4s.
[gsap-animate=slide-in-from-bottom-0.6]
Animation delay: 0.6s.
[gsap-animate=slide-in-from-bottom-0.8]
Animation delay: 0.8s.
[gsap-animate=slide-in-from-bottom-1]
Animation delay: 1s.
[gsap-animate=slide-in-from-bottom-stagger]
This attribute applies a staggered animation to all direct children. Add it to a wrapper to animate its child elements with a staggered effect.

Scale In from Bottom

An animation that slides in from the bottom with a scaling effect when it scrolls into view. Add this attribute to the desired element.
[gsap-animate=scale-in-from-bottom]
Default animation delay: 1s.

Split Text

This uses the same base animation as “Slide In From Bottom,” but animates each word individually. Just add the attribute to the text or heading element.
[gsap-animate=split-text]
Default animation delay: 0.2s.
[gsap-animate=split-text-0.4]
Animation delay: 0.4s.

Marquee Animation

Add this attribute to the wrapper element to enable a continuous, infinite marquee animation.
[gsap-animate=marquee-left]
[gsap-animate=marquee-right]

Cloud Ornaments

This attribute triggers a floating, cloud-like animation on the element. The animation runs infinitely.
[gsap-cloud=to-left-fast]
[gsap-cloud=to-left-medium]
[gsap-cloud=to-left-slow]
[gsap-cloud=to-right-fast]
[gsap-cloud=to-right-medium]
[gsap-cloud=to-right-slow]

Quick Brief

By default, this template has smooth scrolling configured globally via Page Settings > Custom Code. You can modify or remove the script if necessary.

Lenis Smooth Scroll

This is a popular library for websites that need a smoother scrolling experience.
Inside <head> tag
<style>
  html.lenis,
  html.lenis body {
    height: auto;
  }
  .lenis:not(.lenis-autoToggle).lenis-stopped {
    overflow: clip;
  }
  .lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
  }
  .lenis.lenis-smooth iframe {
    pointer-events: none;
  }
  .lenis.lenis-autoToggle {
    transition-property: overflow;
    transition-duration: 1ms;
    transition-behavior: allow-discrete;
  }
</style>
Before </body> tag
<script src="https://unpkg.com/lenis@1.3.1/dist/lenis.min.js"></script>
<script>
  window.Webflow ||= [];
  window.Webflow.push(() => {
    // Run only on desktop
    if (!window.matchMedia('(min-width: 768px)').matches) return;

    // Event listener for website loading (IMPORTANT)
    window.addEventListener('load', () => {
      const lenis = new Lenis({
        duration: 0.9,
        easing: (t) => 1 - Math.pow(1 - t, 3),
        smoothWheel: true,
        smoothTouch: false,
      });

      function raf(time) {
        lenis.raf(time);
        requestAnimationFrame(raf);
      }
      requestAnimationFrame(raf);

      // Sync Lenis with GSAP
      lenis.on('scroll', ScrollTrigger.update);

      ScrollTrigger.refresh();
    });
  });
</script>