Make a spring animation
Say what moves or paste a spring. Watch it move, then copy it as a CSS easing or as Motion, React Spring, SwiftUI or Compose code.
- Free, no sign-up
- Runs in your browser
- CSS linear(), JS, SwiftUI
A menu, a sheet, a card you flick, a dial. Springs from code work too: SwiftUI, Motion, React Spring, Compose.
Nothing in mind? Try one:
How it works
- Say what moves, or paste a spring. "A bottom sheet", "a card you flick away", or a spring from your code:
stiffness: 300, damping: 30,.spring(response: 0.3, dampingFraction: 0.8),bounce: 0.25, duration: 0.5,Spring.StiffnessLow. - Watch it. The preview moves a real menu, sheet, card or dial on your spring, and the curve shows the settle time, the overshoot and every bounce. Slow motion plays it four times slower.
- Check it. The page checks the spring against the apple-design skill: damping ratio 1.0 for most UI, about 0.8 only after a flick or drag, a response of 0.3 to 0.4 seconds, and a starting speed only where a finger hands one over.
- Copy it. As CSS with a linear() easing, Web Animations JavaScript, Motion (Framer Motion), React Spring, SwiftUI or Jetpack Compose, or download a standalone .html page. Every version turns the motion into a short fade when reduce motion is on.
Questions
- What are damping ratio and response?
- They are the two numbers Apple uses for springs instead of stiffness, damping and mass. The damping ratio sets the overshoot: 1 settles smoothly with no bounce, lower values bounce. The response is how quickly the thing reaches its target, in seconds. A spring has no fixed duration; the settle time comes out of both.
- When should a spring bounce?
- The apple-design skill starts most interface springs at a damping ratio of 1.0, with no bounce, and adds a little bounce (about 0.8) only when a gesture carried momentum into the motion: a flick, a throw or a released drag. A menu that bounces as it appears feels wrong; a card you flicked can overshoot.
- How does a spring become CSS?
- The page works out the spring's motion every millisecond until it settles, then writes the curve as a CSS
linear()easing with only as many points as it needs to stay within 0.2% of the real spring. The transition runs for the settle time. Browsers withoutlinear()fall back to ease-out. - Is anything uploaded?
- No. The preview, the check and the code are made in your browser. The optional AI step sends the spring settings and your description, only when you press its button. If you sign in, the springs you copy or download are also kept in your SkillSafe account.
- Which code should I use for a drag or a flick?
- Use the Motion, React Spring, SwiftUI or Compose code. A CSS transition cannot take the finger's speed or be grabbed and reversed mid-way, which the skill calls the single most important principle for gesture-driven motion. The CSS version suits things that open and close on a click.