Skip to content
Meteoric — software development agency
Meteoric — software development agency
GSAPFramer Motion

GSAP vs Framer Motion (Now Motion): Which to Use in 2026

Choose the right animation library for your next production project.

PK

Prashant Khuva

Updated 7 min read
GSAP vs Framer Motion (Now Motion): Which to Use in 2026

GSAP is better for scroll-driven and complex timeline animations — ScrollTrigger handles pinning, scrubbing, and parallax; pinning and scrubbed timelines are not built in to Motion's useScroll, which covers scroll-linked values and viewport triggers. Motion (formerly Framer Motion) is better for React UI micro-interactions: modals, list animations, and page transitions. Measured on identical tooling: GSAP core is 27KB gzipped, GSAP with ScrollTrigger is 44KB, Motion's full React import set is 50KB, and Motion's lazy setup loads a 6KB shell first, 31KB total with animation features.

This guide compares bundle size, scroll animation capability, React integration, SVG work, and production patterns — with a clear recommendation for each use case.

Key Takeaways

  • Use GSAP for scroll-driven animations, complex timelines, and SVG morphing.
  • Use Motion for React UI micro-interactions and component-level transitions.
  • Bundle size is a setup decision, not a brand decision: GSAP core is 27KB gz, Motion's lazy setup is 31KB gz total (6KB shell first), Motion's full imports are 50KB gz.
  • Both libraries coexist safely on the same page if they animate different elements.
01

GSAP vs Framer Motion: Which Is Better?

Neither is better overall — they win different jobs. GSAP is better for scroll-driven sequences, pinned sections, complex timelines, and SVG morphing, because ScrollTrigger handles pinning and scrubbing that Motion's useScroll does not. Motion (formerly Framer Motion) is better for React UI animation: modals, list reordering, layout changes, and page transitions written declaratively in JSX. Many production React sites use both: Motion for components, GSAP for scroll storytelling.

02

GSAP vs Motion at a Glance

Bundle sizes measured with esbuild minify and gzip, October 2026.
AspectGSAPMotion (formerly Framer Motion)
Packagegsapmotion (formerly framer-motion)
npm weekly downloads (as of October 2026)6.0M51.1M (framer-motion) + 25.2M (motion)
Core bundle (gzip)27KB50KB at full React imports
Lazy first paint—6KB shell, 31KB total with animation features
Scroll setup (gzip)44KB with ScrollTrigger34KB with LazyMotion + domAnimation + useScroll + useInView (no pinning)
React fitrefs and the useGSAP hookmotion.* components
SVGpath morphing and drawingstandard SVG props
Licensingfree for most uses, see the GSAP license termsMIT
Best forscroll timelines with pinning and scrubbingUI micro-interactions and scroll-linked effects
03

What Are GSAP and Motion (Framer Motion)?

GSAP (GreenSock Animation Platform) is a framework-agnostic JavaScript animation library that animates CSS, SVG, canvas values, and any JavaScript object. It works in plain JavaScript, React, Vue, or a website builder, and has been free for commercial use since April 2025, including former paid plugins like ScrollTrigger and SplitText. It has 6M+ weekly npm downloads.

Motion is the React animation library formerly published as Framer Motion. You animate with motion.* components and props instead of imperative calls, and AnimatePresence handles exit animations. It is MIT licensed, with 51M+ weekly downloads on framer-motion and 25M+ on the newer motion package. All download figures are as of October 2026.

Is motion.dev the same as GSAP? No. motion.dev is Motion's own site; GSAP lives at gsap.com. The rename from Framer Motion to Motion is official: install motion and import from motion/react. The old framer-motion package still works and bundles identically — our lazy-setup measurement was 31KB gzipped either way.

04

Which Is Lighter? Bundle Size Compared

It depends on the setup, so compare like with like. Measured with esbuild --bundle --minify and gzip -9, React excluded, gsap@3.15.0 and motion@14.3.0, October 2026:

  • GSAP core: 27KB gz.
  • GSAP + ScrollTrigger: 44KB gz — ScrollTrigger adds 17KB.
  • Motion, full React imports (motion, AnimatePresence, useScroll, useInView): 50KB gz.
  • Motion lazy setup (LazyMotion + m): 6KB gz shell at first paint, 31KB gz total with animation features.
  • Motion lazy setup with useScroll and useInView: 34KB gz total.
  • Motion animate() alone: 26KB gz.

For simple React UI animation, Motion's lazy setup is the lightest first paint. For a full scroll-animation setup, GSAP with ScrollTrigger (44KB) stays under Motion's full import set (50KB). Motion's docs advertise "as low as 5kb" for the lazy first paint, which matches our 6KB shell measurement. Tree-shaking and your own imports move these numbers, so re-measure your setup rather than copying ours.

Sources: GSAP installation docs, Motion: reduce bundle size.

05

Scroll Animations: ScrollTrigger vs useScroll

GSAP's ScrollTrigger is the standard tool for scroll-driven animation: pinning a section while content animates, scrubbing a timeline with the scrollbar, parallax, and snapping. Motion's useScroll and useInView hooks cover scroll-linked values and reveal-on-scroll effects with less code, but pinning and scrubbed multi-step timelines are not built in. For a reveal-on-scroll card grid, Motion is enough. For a pinned hero that plays a sequence as the user scrolls, use GSAP.

06

React and Next.js Integration

Motion was built for React: motion.div, variants, and AnimatePresence read naturally in JSX and handle mount and unmount animations that are awkward to write by hand. GSAP works in React through refs and the official useGSAP hook, which scopes animations to a component and cleans them up on unmount. In the Next.js App Router, both run in client components: mark the animated component with "use client" and keep the rest of the page as server components. If most of your animation is UI state in React, Motion is more idiomatic; if you need precise timelines or scroll sequences, GSAP gives more control.

07

SVG and Canvas Animation

GSAP has deeper SVG tooling: path morphing (MorphSVG), stroke drawing (DrawSVG), and motion along a path, all free since April 2025. It can also tween any numeric value, which makes it useful for driving canvas or WebGL scenes. Motion animates standard SVG attributes and pathLength well for simple line-drawing effects. For data visualisation, illustrated heroes, or complex vector animation, GSAP is the stronger choice.

08

Runtime Performance

For smooth animation, which properties you animate matters more than which library you choose. Both libraries hit 60fps when they animate transform and opacity; both slow down when you animate layout properties like width, top, or height on many elements. Motion can hand some animations to the browser's Web Animations API, and GSAP runs everything through a single optimised requestAnimationFrame loop, which keeps long, synchronised timelines in step. Practical rules: animate transforms and opacity, avoid animating dozens of elements at once on mobile, respect prefers-reduced-motion, and measure with the Performance panel in Chrome DevTools rather than trusting either library's marketing. See the web.dev animations guide.

09

Can I Use GSAP in Framer?

In Framer, the website builder: yes. Framer's Custom Code feature (Project Settings → Custom Code) injects scripts at the start or end of the head or body, on one page or the whole site — add the GSAP and ScrollTrigger CDN scripts there and target your elements by CSS selector, including data-framer-name attributes. For interactions that need component state, Framer Code Components are React components, so GSAP imports directly. Docs: Framer custom code · Framer developer comparison.

In a React app: GSAP and Motion work side by side — Motion for component-level transitions, GSAP for scroll timelines on other elements.

10

GSAP Alternatives: Rive, Remotion, Anime.js, and CSS

  • Rive — a design tool with its own runtime that plays interactive vector animations on canvas or WebGL. Choose it when designers author the animation and developers just embed it. It does not animate your DOM.
  • Remotion — renders React components to video files (MP4). Choose it for generated videos, not for animating a live website.
  • Anime.js — a lightweight, framework-agnostic animation library with a timeline API. A reasonable choice when you want GSAP-style imperative animation with fewer features.
  • CSS transitions and scroll-driven animations — for simple hovers, reveals, and scroll-linked progress, native CSS (including animation-timeline: scroll()) needs no JavaScript at all. Check current browser support before relying on scroll-driven CSS for important content.

For most React and Next.js sites, the practical choice is still GSAP, Motion, or both.

11

What We Use in Production

On animation-heavy sites we build, the split is consistent: Motion handles UI interactions such as modals, menus, and page transitions; GSAP with ScrollTrigger handles scroll-driven hero sections and parallax. Each library does what it is best at, and they coexist safely as long as they never animate the same element at the same time. GSAP's timeline API also keeps complex multi-element sequences readable, because the whole sequence lives in one place instead of being spread across component props.

Need this pattern built for you? See Next.js Development or book a call.

This guide is maintained by the Meteoric team. About us · Services · Contact · Editorial review by Prashant Khuva.

FAQ: GSAP vs Framer Motion (Motion): Bundle Sizes Tested

Yes — just never animate the same element with both libraries at the same time. They operate independently and animate different properties. Many production sites use Framer Motion for UI interactions (modals, page transitions) and GSAP for scroll-based hero animations.

Both work well with Next.js. Framer Motion integrates naturally with React Server Components (as a client component wrapper). GSAP works via refs and the useGSAP hook. For Next.js projects with scroll animations, the common pattern is Framer Motion for UI + GSAP with ScrollTrigger for hero/scroll sections.

No — GSAP has been completely free for commercial use since April 2025. Every plugin (ScrollTrigger, SplitText, DrawSVG, and more) is now included at no cost, so the old paid Business Green license no longer exists. GSAP is distributed under the Standard No-Charge license, which allows commercial projects but not reselling GSAP itself. Motion (formerly Framer Motion) is MIT licensed and free for all use cases.

GSAP. ScrollTrigger gives you pinning, scrubbing, and timeline-driven scroll sequences that Framer Motion's useScroll and useInView hooks cannot reproduce. For a hero with parallax and pinned sections, GSAP is the standard production choice.

Depends on the setup. GSAP core is 27KB gzipped, 44KB with ScrollTrigger. Motion is 50KB gzipped at full React imports, 31KB with LazyMotion (6KB shell first, 31KB total with animation features). Match setups before comparing.

Motion, by npm weekly downloads as of October 2026: framer-motion had 51.1M and motion 25.2M, versus 6.0M for gsap. Both are actively maintained.

Rive is an animation tool with its own runtime that renders vector animations to canvas or WebGL. GSAP animates DOM, SVG, and JavaScript values in the browser. Different layers of the stack.

Remotion renders React components to video files for export. GSAP animates live pages in the browser. One produces MP4s, the other interactive motion.

Yes. Framer Motion was renamed Motion. The new package is motion (import from motion/react); the framer-motion package still works and bundles the same.

Motion (formerly Framer Motion) for React UI animation, Anime.js for a lightweight framework-agnostic timeline library, Rive for designer-authored interactive animations, and native CSS transitions or scroll-driven animations for simple effects with no JavaScript.

PK

Written by

Prashant Khuva

Founder & Full-Stack Developer at Meteoric. Building SaaS products and high-performance web applications for startups. Editorial policy for this blog.

Meteoric

Have a project in mind?

From landing pages to full SaaS platforms — let's build something exceptional.