Skip to content

Physics-based animation library pairing React Spring hooks with Popmotion utilities for interruptible, gesture-driven motion.

CCM score
43 of 100
skills.sh installs
2.8K
GitHub stars
1.5K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers spring configuration, useSpring, useTrail, and useTransition patterns plus scroll and viewport-triggered animations
  • Includes seven worked patterns, from click-triggered springs and list enter/exit transitions to velocity preservation and chained loops
  • Provides config presets (gentle, wobbly, stiff, slow, molasses) and integrations with React Three Fiber and Popmotion inertia
  • Designed for fluid UI motion, drag and inertia scrolling, and spring-loaded interactions that stay interruptible mid-motion

Install

$ npx -y skills add freshtechbro/claudedesignskills --skill react-spring-physics -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

React Spring Physics

Physics-based animation for React applications combining React Spring's declarative spring animations with Popmotion's low-level physics utilities.

Overview

React Spring provides spring-physics animations that feel natural and interruptible. Unlike duration-based animations, springs calculate motion based on physical properties (mass, tension, friction), resulting in organic, realistic movement. Popmotion complements this with composable animation functions for keyframes, decay, and inertia.

When to use this skill:

  • Natural, physics-based UI animations
  • Gesture-driven interfaces (drag, swipe, scroll)
  • Interruptible animations that respond to user input mid-motion
  • Smooth transitions that maintain velocity across state changes
  • Momentum scrolling and inertia effects

Core libraries:

  • @react-spring/web - React hooks for spring animations
  • @react-spring/three - Three.js integration
  • popmotion - Low-level animation utilities (optional, for advanced use cases)

Core Concepts

Spring Physics

Springs animate values from current state to target state using physical simulation:

Details

Repository
github.com/freshtechbro/claudedesignskills
Categories
Animation & Motion, Frontend & UI Code
First seen
Jun 3, 2026

More from freshtechbro/claudedesignskills

All 22

Similar to React Spring Physics

More Animation & Motion