Appearance

Visual style

Mode
Theme
Accent
Advanced
Text sizeScales the whole site
16 px
Reduce motionReduce animations or match your system
Separate light and darkChoose a theme, accent and font for each
50

Technology · Motion & 3D

GSAP animation development

GSAP (GreenSock Animation Platform) is a JavaScript animation library. Its documentation describes tweens and timelines for animating CSS, SVG, canvas and JavaScript objects, with plugins such as ScrollTrigger for linking animation to scroll position. GSAP and its plugins are free to use, including commercially, since its acquisition by Webflow.

In practice

How I use GSAP

I use GSAP with ScrollTrigger and Lenis on motion-led sites: Eastern Condiments' pinned sections, stacked cards and drag galleries, Litgrxpher's motion-driven galleries, and the AutoViz marketing site's scroll-driven sections. On other builds (ORVAS, Venora, Fresh Can) I use plain motion modules on a single requestAnimationFrame loop when GSAP would be more than the effect needs.

The rules I follow for motion

  1. Every section is readable with JavaScript off. Pinned layouts only apply under a class (for example .js:not(.reduced)) that is set when motion can run.
  2. A single requestAnimationFrame driver owns scroll and frame callbacks, and modules subscribe to it instead of starting their own loops.
  3. Per-frame code only writes transforms and CSS variables. Layout reads happen in batches on resize, never inside the frame callback.
  4. Motion modules are lazy-loaded when their section appears, using data-* hooks in the markup.
  5. Changes are judged on Lighthouse medians and touch-scroll traces from a throttled phone profile.

Illustrative example: a pinned, scrubbed section

import { gsap } from "gsap";
import { ScrollTrigger } from "gsap/ScrollTrigger";
gsap.registerPlugin(ScrollTrigger);

const mm = gsap.matchMedia();
mm.add("(prefers-reduced-motion: no-preference)", () => {
  gsap.timeline({
    scrollTrigger: { trigger: ".range", start: "top top", end: "+=150%", pin: true, scrub: true },
  })
    .from(".range__pack", { yPercent: 40, rotate: -6 })
    .to(".range__bg", { backgroundColor: "var(--flood)" }, "<");
  // matchMedia reverts everything automatically when the query stops matching
});

A bug from the Eastern rebuild

On the Eastern rebuild, one visual bug came from GSAP overwriting a positioning transform on an element it was also animating. The fix was to put positioning and animation on separate wrapper elements, which I now do by default for anything GSAP animates.

Trade-offs

Where GSAP shines, and where it doesn't

Strengths

  • Reliable timeline sequencing and easing that would take hundreds of lines by hand.
  • ScrollTrigger handles pinning, scrubbing and refresh on resize, the hard parts of scroll choreography.
  • Works on any property, including canvas and WebGL uniforms.

Limitations

  • Adds JavaScript weight; simple transitions are better done in CSS.
  • Pinned, scroll-scrubbed sections are easy to make inaccessible or janky on low-end phones without discipline.

Sources

Official documentation

General descriptions on this page are based on the official documentation linked below. Experience notes are my own.

FAQ

GSAP questions

Do scroll animations hurt SEO or performance?

They don't have to. Content should be in the HTML and readable without JavaScript; animation should only enhance it. I lazy-load motion modules, animate only transforms and opacity where possible, and measure with Lighthouse and touch-scroll traces on a throttled mobile profile.

What happens for visitors who prefer reduced motion?

They get a static, fully readable layout. Every motion module I write checks prefers-reduced-motion and does nothing when it's set, and pinned sections are only enabled by CSS when JavaScript is running and motion is allowed.

Is GSAP free for commercial projects?

Yes. Since Webflow acquired GreenSock, GSAP and all its plugins, including formerly paid ones such as SplitText and MorphSVG, are free to use, including commercially, under GSAP's standard licence. Check the current licence terms on gsap.com for your use case.

Need a GSAP developer?

If your project needs GSAP, send a short description of what you're building and where it's stuck. I'll reply with how I'd approach it.