NPM Star
Collections
  1. Home
  2. Compare
  3. framer-motion vs gsap vs react-spring
NPM Compare

Compare NPM packages statistics, trends, and features

CollectionsVS Code extensionChrome extensionTermsPrivacyLinkTreeIndiehackersBig Frontendqiuyumi

React-Spring vs Framer-Motion vs Gsap comparison

Compare react-spring vs framer-motion vs gsap for animation use cases, including package popularity, downloads, ecosystem fit, and practical tradeoffs.

Animationanimationnpmcomparisonreact-springframer-motiongsap

Unable to load comparison data. Please try again later.

<h1 align="center"> <img width="35" height="35" alt="Motion logo" src="https://github.com/user-attachments/assets/00d6d1c3-72c4-4c2f-a664-69da13182ffc" /><br />Motion for React</h1> <h3 align="center"> An open source animation library<br />for React </h3> <p align="center"> <a href="https://www.npmjs.com/package/motion" rel="noopener noreferrer nofollow" ><img src="https://img.shields.io/npm/v/motion?color=0368FF&label=version" alt="npm version"></a> <a href="https://www.npmjs.com/package/motion" rel="noopener noreferrer nofollow" ><img src="https://img.shields.io/npm/dm/framer-motion?color=8D30FF&label=npm" alt="npm downloads per month"></a> <a target="_blank" rel="noopener noreferrer nofollow" href="https://www.jsdelivr.com/package/npm/motion"><img alt="jsDelivr hits (npm)" src="https://img.shields.io/jsdelivr/npm/hm/framer-motion?logo=jsdeliver&color=FF4FBA"></a> <img alt="NPM License" src="https://img.shields.io/npm/l/motion?color=FF2B6E"> <a target="_blank" rel="noopener noreferrer nofollow" href="https://score.motion.dev/site/motion.dev?utm_source=github&utm_medium=readme-badge"><img height="20" alt="MotionScore grade" src="https://api.motion.dev/score/badge?url=motion.dev"></a> </p>
npm install motion

Table of Contents

  1. Why Motion?
  2. ๐Ÿฆ Platforms
  3. ๐ŸŽ“ Examples
  4. ๐ŸŽจ Motion Studio
  5. ๐Ÿค– Using Motion with AI
  6. โšก๏ธ Motion+
  7. ๐Ÿ‘ฉ๐Ÿปโ€โš–๏ธ License
  8. ๐Ÿ’Ž Contribute
  9. โœจ Sponsors

Why Motion?

  • Simple API: First-class React, JavaScript, and Vue packages.
  • Hybrid engine: Power of JavaScript combined with native browser APIs for 120fps, GPU-accelerated animations.
  • Production-ready: TypeScript, extensive test suite, tree-shakable, tiny footprint. Batteries included: Gestures, springs, layout transitions, scroll-linked effects, timelines.

๐Ÿฆ Platforms

Motion is available for React, JavaScript and Vue.

React

import { motion } from "motion/react" function Component() { return <motion.div animate={{ x: 100 }} /> }

Get started with Motion for React.

Note: Framer Motion is now Motion. Import from motion/react instead of framer-motion.

JS

import { animate } from "motion" animate("#box", { x: 100 })

Get started with JavaScript.

Vue

<script> import { motion } from "motion-v" </script> <template> <motion.div :animate={{ x: 100 }} /> </template>

Get started with Motion for Vue.

๐ŸŽ“ Examples & tutorials

Browse 450+ official examples, with copy-paste code that'll level-up your animations whether you're a beginner or an expert.

Over 110 examples come with a full step-by-step tutorial on their example page.

๐Ÿค– Using Motion with AI

Give your coding agent current Motion docs:

  • Agent skill: npx motion-ai installs the free, MIT-licensed /motion skill and sets up Motion's MCP servers for Claude Code, Cursor, Amp, OpenCode, Gemini CLI and Copilot. Source on GitHub.
  • MCP server: https://mcp.motion.dev searches the Motion docs and example metadata. It is free and needs no account.
  • llms.txt: motion.dev/llms.txt indexes every docs page. Motion+ pages are labelled as paid, with their install and import.

Motion+ adds example and Motion UI source, MotionScore performance audits and CSS spring generation for your agent.

๐ŸŽจ Motion Studio

A visual animation editor for your website. Edit keyframes, easing curves and springs on a live timeline, or describe changes to the Ultramotion agent, then apply the result straight to your code with Cursor, Codex or Claude.

Explore Motion Studio

โšก๏ธ Motion+

A one-time Personal licence with lifetime updates, or an annual per-seat Business plan for teams:

  • 450+ examples
  • 110+ tutorials
  • Premium APIs like Cursor and Ticker
  • Transition editor for Cursor and VS Code
  • AI Kit: example and Motion UI source, MotionScore audits and CSS springs for your agent
  • Private Discord
  • Early access content

Get Motion+

๐Ÿ‘ฉ๐Ÿปโ€โš–๏ธ License

  • Motion is MIT licensed.

๐Ÿ’Ž Contribute

  • Want to contribute to Motion? Our contributing guide has you covered.

โœจ Sponsors

Motion is sustainable thanks to the kind support of its sponsors.

Become a sponsor

Partners

Motion powers the animations for all websites built with Framer, the web builder for creative pros. The Motion website itself is built on Framer, for its delightful canvas-based editing and powerful CMS features.

<a href="https://framer.link/FlnUbQY"> <img alt="Framer" src="https://github.com/user-attachments/assets/22a79be7-672e-4336-bfb7-5d55d1deb917" width="250px" height="150px"> </a>

Motion drives the animations on the Cursor homepage, and is working with Cursor to bring powerful AI workflows to the Motion examples and docs.

<a href="https://cursor.com"> <img alt="Cursor" src="https://github.com/user-attachments/assets/81c482d3-c2c2-4b35-bbcf-933b28d5b448" width="250px" height="150px" /> </a>

Platinum

<a href="https://linear.app"><img alt="Linear" src="https://github.com/user-attachments/assets/f9ce44b4-af28-4770-bb6e-9515b474bfb2" width="250px" height="150px"></a> <a href="https://figma.com"><img alt="Figma" src="https://github.com/user-attachments/assets/1077d0ab-4305-4a1f-81c8-d5be8c4c6717" width="250px" height="150px"></a> <a href="https://sanity.io"><img alt="Sanity" src="https://github.com/user-attachments/assets/80134088-f456-483f-8edd-940593c120ce" width="250px" height="150px"></a> <a href="https://clerk.com?utm_campaign=motion"><img alt="Clerk" src="https://github.com/user-attachments/assets/16789f85-eaf4-46fb-9961-b3e66d33afbc" width="250px" height="150px"></a>

Gold

Silver

<a href="https://liveblocks.io"><img alt="Liveblocks" src="https://github.com/user-attachments/assets/28eddbe5-1617-4e74-969d-2eb6fcd481af" width="150px" height="100px"></a> <a href="https://www.frontend.fyi/?utm_source=motion"><img alt="Frontend.fyi" src="https://github.com/user-attachments/assets/f16e3eb9-f0bd-4ad1-8049-f079a3d65c69" width="150px" height="100px"></a> <a href="https://firecrawl.dev"><img alt="Firecrawl" src="https://github.com/user-attachments/assets/2c44e7f4-5c2a-4714-9050-1570538665ff" width="150px" height="100px"></a> <a href="https://bolt.new"><img alt="Bolt.new" src="https://github.com/user-attachments/assets/7932d4b2-bb6c-422e-82b9-6ad78a7e3090" width="150px" height="100px"></a>

Personal

  • OlegWock
  • Lambert Weller
  • Jake LeBoeuf

No README available

<p align="center"> <img src="https://i.imgur.com/QZownhg.png" width="240" /> </p> <br /> <h1 align="center">react-spring</h1> <h3 align="center">A spring-physics first animation library <br>giving you flexible tools to confidently cast your ideas</h3> <br> <p align="center"> <a href="https://www.npmjs.com/package/react-spring" target="_blank"> <img src="https://img.shields.io/npm/v/react-spring.svg?style=flat&colorA=000000&colorB=000000" /> </a> <a href="https://www.npmjs.com/package/react-spring" target="_blank"> <img src="https://img.shields.io/npm/dm/react-spring.svg?style=flat&colorA=000000&colorB=000000" /> </a> <a href="https://discord.gg/ZZjjNvJ" target="_blank"> <img src="https://img.shields.io/discord/740090768164651008?style=flat&colorA=000000&colorB=000000&label=discord&logo=discord&logoColor=ffffff" alt="Chat on Discord"> </a> </p> <br>

react-spring is a cross-platform spring-physics first animation library.

It's as simple as:

const styles = useSpring({ from: { opacity: 0 }, to: { opacity: 1 } }) <animated.div style={styles} />

Just a small bit about us:

  • Cross-Platform: We support react-dom, react-native, react-three-fiber, react-konva & react-zdog.
  • Versatile: Be declarative with your animations or if you prefer, imperative.
  • Spring-Physics First: By default animation use springs for fluid interactivity, but we support durations with easings as well.

There's a lot more to be had! Give it a try and find out.

Getting Started

โšก๏ธ Jump Start

# Install the entire library npm install react-spring # or just install your specific target (recommended) npm install @react-spring/web
import { animated, useSpring } from '@react-spring/web' const FadeIn = ({ isVisible, children }) => { const styles = useSpring({ opacity: isVisible ? 1 : 0, y: isVisible ? 0 : 24, }) return <animated.div style={styles}>{children}</animated.div> }

It's as simple as that to create scroll-in animations when value of isVisible is toggled.

๐Ÿ“– Documentation and Examples

More documentation on the project can be found here.

Pages contain their own examples which you can check out there, or open in codesandbox for a more in-depth view!


๐Ÿ“ฃ What others say

<p align="middle"> <img src="assets/testimonies.jpg" /> </p>

Used by

<p align="middle"> <a href="https://nextjs.org/"><img width="285" src="assets/projects/next.png"></a> <a href="https://codesandbox.io/"><img width="285" src="assets/projects/csb.png"></a> <a href="https://aragon.org/"><img width="285" src="assets/projects/aragon.png"></a> </p>

And many others...

Backers

Thank you to all our backers! ๐Ÿ™ If you want to join them here, then consider contributing to our Opencollective.

<a href="https://opencollective.com/react-spring#backers" target="_blank"> <img src="https://opencollective.com/react-spring/backers.svg?width=890"/> </a>

Contributors

This project exists thanks to all the people who contribute.

<a href="https://github.com/react-spring/react-spring/graphs/contributors"> <img src="https://opencollective.com/react-spring/contributors.svg?width=890" /> </a>
StarsIssuesVersionUpdatedโ“˜Last publish dateCreatedโ“˜Package creation dateSizeโ“˜Minified + Gzipped size
F
framer-motion
35,371514.14.0a month ago7 years agoinstall size 78.9 KB
G
gsap
30,95263.15.1a month ago12 years agoinstall size 26.8 KB
R
react-spring
29,3188210.0.46 months ago8 years agoinstall size 19.5 KB

Dependencies Comparison

framer-motion

Dependencies

tslib^2.4.0
motion-dom14.14.0
motion-utils14.7.0

Dev Dependencies

jest^29.7.0
three0.137.0
rollup4.59.0
typescript5.4.3
@types/three0.137.0
concurrently^7.3.0
@thednp/dommatrix^2.0.11
@remix-run/component1.1.0
@radix-ui/react-dialog^1.1.15

Peer Dependencies

react^18.0.0 || ^19.0.0
remix^3.1.0
react-dom^18.0.0 || ^19.0.0

gsap

Dependencies

Dev Dependencies

Peer Dependencies

react-spring

Dependencies

@react-spring/web~10.1.0
@react-spring/core~10.1.0
@react-spring/zdog~10.1.0
@react-spring/konva~10.1.0
@react-spring/three~10.1.0
@react-spring/native~10.1.0

Dev Dependencies

Peer Dependencies

react^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0
react-dom^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0

Who's Using These Packages

framer-motion

awesome-vibe-coding-prompt-code-templates
awesome-vibe-coding-prompt-code-templates

builder prompts which can be sent to builders like cursor, bolt.diy, bolt.new, trae, project idx, Claude code, lovable.dev, llmacoder, geminicoder, windsurf, deepseek-artifact, cline, aider etc

gsap

ruixen.com
ruixen.com

Ruixen UI โ€“ A modern, flexible, and customizable UI component library built for speed, scalability, and developer happiness.

sureshmurali.github.io
sureshmurali.github.io

Personal Portfolio built using React

unknown-pleasures
unknown-pleasures

a tiny web experiment.

mlops.toys
mlops.toys

๐ŸŽฒ A curated list of MLOps projects, tools and resources

FlowKit
FlowKit

Free n8n workflow templates. Copy, paste, automate.

react-spring

CharacterControl
CharacterControl

Floating Capsule Character Controller (Rigibody control)

zxuqian.cn
zxuqian.cn

ๅณฐๅŽๅ‰็ซฏๅทฅ็จ‹ๅธˆ@Bilibili ็š„ไธชไบบๅšๅฎข๏ผŒ่ฎฐๅฝ•ๅผ€ๅ‘ใ€ๆ—ฅๅธธใ€ๅฟƒๅพ—ใ€ๆ€่€ƒใ€้š็ฌ”็ญ‰ๅ†…ๅฎนใ€‚

awesome-vibe-coding-prompt-code-templates
awesome-vibe-coding-prompt-code-templates

builder prompts which can be sent to builders like cursor, bolt.diy, bolt.new, trae, project idx, Claude code, lovable.dev, llmacoder, geminicoder, windsurf, deepseek-artifact, cline, aider etc

tailwind-nextjs-starter-blog-i18n
tailwind-nextjs-starter-blog-i18n

This is a Next.js, i18n and Tailwind CSS blogging starter template. Comes out of the box configured with the latest technologies to make technical writing a breeze. Easily configurable and customizable. Perfect as a replacement to existing Jekyll and Hugo individual blogs.

wins-11
wins-11

An online Windows 11 web app created by ReactJS can provide a Windows 11-like experience in a web browser.