React Spring
Spring-physics-based animation library for React by Poimandres (pmndrs). Natural, fluid, and interruption-safe motion.

Overview
React Spring is a spring-physics-driven animation library developed by Poimandres (pmndrs). Unlike duration-based transitions, it emulates real-world physical forces (mass, tension, friction), resulting in responsive, organic motion.
Key Features
- Spring-Physics Engine: Motion inherits velocity and trajectory naturally without rigid easing curves.
- Interruption-Safe Animations: Seamlessly adapts when user interactions interrupt mid-flight animations.
- Multi-Platform Support: Works on React DOM, React Native, Canvas, and Three.js (React Three Fiber).
- Declarative Hooks API: Clean integration via
useSpring,useTransition, anduseTrail.
Installation & Quick Start
npm install @react-spring/webimport { useSpring, animated } from '@react-spring/web';
export default function App() {
const springs = useSpring({
from: { opacity: 0, y: 40 },
to: { opacity: 1, y: 0 },
});
return <animated.div style={springs}>Physics in motion</animated.div>;
}Why Choose React Spring?
- Best for: Dynamic interactive UI, gesture-driven interfaces, 3D WebGL scenes, and fluid interactive animations.
- Not suitable for: Simple entry/exit fade animations where basic CSS transitions suffice.
Comments & Discussion
No comments yet. Be the first to share your experience or thoughts!
Related libraries
Curated by category & stack23rd
An open-source shadcn/ui registry of opinionated, tasteful components by radiumcoders — WebGL shaders, playful 404s, and interactive showpieces you copy, paste, and own.
Great UI
A curated collection of beautiful, copy-paste React components built with TypeScript, Tailwind CSS v4, and Motion for crafting premium interfaces instantly.
Rewamp UI
A copy-paste React component library featuring highly interactive, physics-driven Framer Motion and Three.js WebGL components built with Tailwind CSS 4.