Agent skill

React Spring Physics Skill for UI Animation

The react-spring-physics skill gives an AI coding agent patterns for spring based React animation with React Spring and Popmotion, from hooks and presets to pitfalls.

Install
git clone https://github.com/freshtechbro/claudedesignskills.git
View on GitHub

Stars, license and last push from GitHub. Install count as reported by the open skills directory.

What is the react-spring-physics skill?

React-spring-physics is a skill in freshtechbro's design skills repository on GitHub. It covers React Spring hooks, spring configuration presets, trails, list transitions, scroll and viewport animation, plus Popmotion utilities, so an AI coding agent writes interruptible, physics based motion instead of fixed duration tweens.

It is a skill from the claudedesignskills collection that pairs React Spring's declarative spring animations with Popmotion's low-level utilities. Springs run on mass, tension and friction instead of a set duration, so motion stays natural and can be interrupted by the user.

What changes in your agent's output

  • Animations use useSpring, useSprings, useTrail, useTransition, useScroll and useInView from the react-spring web package.
  • The agent picks a config preset such as gentle, wobbly, stiff, slow or molasses, or sets mass, tension and friction directly.
  • The function form of useSpring with its api is used for click or gesture driven updates.
  • Pitfalls are called out: missing dependency arrays, mutating spring values, ignoring velocity and animating non-numerical values.
  • Reduced motion is handled by setting the skipAnimation global.

What is bundled with it

Beyond SKILL.md the folder lists two scripts, a spring generator and a physics calculator, three reference files on the React Spring API, Popmotion and physics tuning, and a React and Vite starter template with examples.

Who the skill is for

Best for

  • React developers building drag, swipe, inertia and other gesture driven interfaces.
  • Interfaces where an animation must change direction mid-motion and keep its velocity.
  • Projects that already use React Spring or want a physics alternative to a duration based library.

Not for

  • Precise timeline choreography, which the skill assigns to GSAP.
  • Non-React projects, since the hooks are React specific.
  • Declarative variant based animation, where the skill points to a Motion based alternative.

For timeline sequences use gsap-core, and for a declarative alternative see motion-framer. Check the cost of what you build with animation-performance.