talira

React Spring

A spring-physics animation library for React and React Three Fiber

open sourceMITfree

React Spring animates React components with spring physics rather than fixed durations, so motion stays fluid when it's interrupted or driven by gestures. You describe target values with hooks such as useSpring and useTransition and render them through animated elements, declaratively or imperatively, and durations with easings are there when you want them. It targets the web (react-dom) and React Three Fiber, and is made by the Poimandres open source collective.

Problems it solves

  • make my React UI animations feel natural instead of using fixed CSS transitions
  • animate list items entering and leaving in React
  • animate 3D objects in a React Three Fiber scene

Features

  • Animate React components with spring physics
  • Hooks: useSpring, useSprings, useTrail, useTransition and useChain
  • Animated elements for DOM and React Three Fiber
  • Declarative or imperative control of animations
  • Durations with easing functions as well as springs

Capabilities

Has official SDKsplan not known

Alternatives

The same job

These do what React Spring does.

  1. GSAP A wildly robust JavaScript animation library built for professionals
  2. AutoAnimate Zero-config animation utility that adds transitions with one line of code
  3. Motion Animation library for React, JavaScript and Vue
  4. React Transition Group Components for managing React component states over time, for animations

Compare React Spring with the top 3