Skip to main content
Package: motion.

Try it

Press Move right, then move back. Lower damping for more bounce, increase stiffness for a quicker response, or increase mass for a heavier feel.

Changes apply on the next move.

Code

motion-springs.tsx

Keyboard and reduced motion

Use Tab to reach each control. Arrow keys adjust the selected value; Enter or Space activates the move button. The preview uses instant position changes when your system requests reduced motion.

Key props

Motion documentation