Why I pick GSAP over Framer Motion.
Both are good. For launch pages, scroll-driven scenes and anything outside React, GSAP gives me a timeline I can steer. Where Motion still wins, and how I choose between them.
Most of the animation I get paid for is big: a product page where a device assembles as you scroll, a sequence of forty things that have to land in order, a headline that splits into lines and arrives one line at a time. At CRED I built a library for exactly those pages. At Ema I build the public web. GSAP has been in the stack for both.
People ask why I do not use Framer Motion, since most React teams do. This is the long answer.
First, the names
Three different things get called Framer.
Framer is a design tool that publishes websites. You draw the site and it hosts it.
Framer Motion was the React animation library that came out of it. In November 2024 it became independent and was renamed Motion. The package is now motion, you import from motion/react, and it has a plain JavaScript API as well as the React one.
GSAP is a JavaScript animation library that has been around since the Flash days. It does not care what framework you use.
When I say Framer Motion below, I mean Motion.
A timeline I can steer
This is the main reason. A GSAP timeline is an object. I can build it, nest it, label points in it, play it, pause it, reverse it, scrub it to 37% or run it at half speed.
const tl = gsap.timeline({ defaults: { ease: "power3.out", duration: 0.8 } });
tl.from(".device", { y: 80, autoAlpha: 0 })
.from(".device-screen", { scale: 0.94, duration: 1.2 }, "<0.1")
.addLabel("features")
.from(".feature", { y: 24, autoAlpha: 0, stagger: 0.08 }, "features")
.from(".cta", { autoAlpha: 0 }, "features+=0.4");The third argument is the position: "<0.1" starts a tenth of a second after the previous tween starts, "features+=0.4" starts four tenths after a label. Once the sequence exists, a designer can say "the button comes in too early" and the fix is one number.
Motion can sequence too. You pass animate() an array of steps. It works well for a handful of steps. Past that I miss labels, nesting and being able to change the timeline after it is built.
Scroll is where the gap is widest
A launch page is a film that the scrollbar plays. That needs three things: pin a section in place, tie a timeline to the scroll position, and do it without jank.
gsap.registerPlugin(ScrollTrigger);
const sequence = { frame: 0 };
gsap.timeline({
scrollTrigger: {
trigger: ".scene",
start: "top top",
end: "+=2400",
pin: true,
scrub: 0.6,
},
})
// 120 images drawn to a canvas, one per frame of scroll
.to(sequence, { frame: 119, ease: "none", snap: "frame", onUpdate: () => drawFrame(sequence.frame) })
.to(".caption-one", { autoAlpha: 0 }, 0.3)
.from(".caption-two", { autoAlpha: 0, y: 20 }, 0.35);pin holds the scene while 2,400 pixels of scroll pass. scrub: 0.6 ties the timeline to the scrollbar with a little catch-up, so it feels weighted. The first tween animates a plain object, which is how an image sequence is driven: GSAP counts from frame 0 to 119 and I draw whichever frame it is on.
Motion's useScroll gives you scroll progress as a value, and mapping one or two properties to it is pleasant. Pinning a scene and scrubbing a long, nested sequence through it is the job ScrollTrigger was built for.
It works wherever I am
I have shipped Vue and Nuxt at Zoomcar and Anatta, and Next.js at CRED and Ema. GSAP is the same in all of them. It also animates anything that is a number: an SVG path, a canvas frame index, a shader uniform, a plain object that I read in a render loop.
It also stays out of React's way. A GSAP tween writes to the element directly. Nothing re-renders. When forty elements move on every frame of a scroll, that matters.
The plugins are free now
For years the honest objection to GSAP was the licence: the best plugins were paid. That ended on 30 April 2025. After Webflow acquired GSAP, everything became free, including for commercial work: SplitText, MorphSVG, ScrollSmoother, Flip and the rest, all in the public gsap package.
SplitText alone used to be the reason teams paid. Line-by-line reveals on a headline, with the split redone correctly when the font loads or the window resizes, are a few lines now.
React is not the awkward part any more
The old complaint was cleanup: animations created in an effect, leaked on unmount. The useGSAP hook fixed that. Everything created inside it is scoped to a container and reverted automatically.
const root = useRef<HTMLDivElement>(null);
useGSAP(
() => {
const mm = gsap.matchMedia();
mm.add("(prefers-reduced-motion: no-preference)", () => {
gsap.from(".line", { yPercent: 100, stagger: 0.08, ease: "expo.out" });
});
},
{ scope: root },
);matchMedia is the other half. Breakpoints and reduced motion are conditions on the animation itself, and GSAP sets up and tears down the right version when the condition changes.
Where Motion wins
I would be lying if I said GSAP was better at everything.
- Layout animation. Add
layoutto a component and Motion animates it between any two layouts. A sharedlayoutIdmorphs one element into another across components. GSAP has the Flip plugin, and it is good, but Motion's version is one prop. - Exit animations.
AnimatePresencelets a component finish animating after React has removed it. In GSAP you manage that yourself. - Gestures. Drag, hover and tap states are props.
- Reading the code. For interface work,
animate={{ opacity: 1 }}next to the markup is easier to follow than a ref and an effect. - Size, for small jobs. Motion's own comparison lists its smallest build at about 3 kB against about 27 kB for GSAP's core. If all you animate is a menu, that is a real difference.
- The compositor. Motion runs transform and opacity animations through the browser's own animation engine where it can, so they keep moving when the main thread is busy.
And Framer, the tool
Framer is a fast way to get a marketing site live when a designer owns it end to end. I work on sites that are part of the product: content comes from a pipeline, pages have a performance budget, and the same components appear in the app. That is a codebase, and in a codebase I want the animation to be code I can read in a pull request.
How I choose
- A menu, a modal, a list that reorders, a card that expands: Motion, or plain CSS.
- A page that tells a story on scroll, anything with a real sequence, anything with SVG or canvas, anything outside React: GSAP.
- A project that already has one of them: use the one that is there. Two animation libraries in one bundle is the wrong answer to almost every question.
This site is a small example. Its everyday motion is CSS and the Web Animations API, because that is all it needs. GSAP is loaded on one page in the lab, where buttons pull towards the cursor, and nowhere else.
What I'd carry forward
- Pick the tool by the hardest animation in the project.
- If the scrollbar drives it, or it runs past three or four steps, build a timeline.
- Animate transforms and opacity. Leave layout properties alone.
- Put reduced motion in the animation code, where it cannot be forgotten.
- Load the animation library only on the pages that use it.