You are on page 1of 1

With Hooks Preferred for performance and ergonomics

Cheatsheet for v8.0.27

Orchestration Coordinating between multiple elements

useTrail Stagger the same transition across multiple elements

With Render Props Flexible, easier data access

useChain Sequence multiple springs however you’d like!

Configuration Change the mechanics of the animation

Simulating keyframes Multi-step animation on mount


Mass Tension Friction
Heavier items Stiff springs release High friction
move more slowly more energy dampens the effect

Interpolation Direct access to useSpring values. Escape hatch.

Callbacks Sequencing with other parts of your React app

Protip: Tweak config.precision for more accurate timing

By Josh Comeau · http://www.joshwcomeau.com

You might also like