# Spring Animation Generator > Make a spring animation for a UI element and copy the code. Say what moves (a menu, a bottom sheet, a card you flick, something you drag or turn) or paste a spring from code, watch it move on a real element with its curve, settle time and overshoot, and copy it as a CSS linear() easing, Web Animations JavaScript, Motion (Framer Motion), React Spring, SwiftUI or Jetpack Compose. Checked against Apple's spring rules from the apple-design skill. Free, no sign-up, runs in the browser. URL: https://spring-animation-generator.skillsafe.ai/ ## What it does - Reads what moves from the visitor's words (menu, popover, dropdown, toast -> a menu that grows from its trigger; drag, reposition, picture-in-picture -> a move; sheet, drawer -> a sheet; flick, swipe, card -> a flicked card; turn, rotate, dial, chevron -> a rotation) and any spring in the text: stiffness / tension, damping / friction and mass (Motion, React Spring, CSS spring(mass stiffness damping velocity)), SwiftUI response + dampingFraction, duration + bounce and .smooth / .snappy / .bouncy, Jetpack Compose dampingRatio, stiffness and the Spring.DampingRatio* / Spring.Stiffness* constants, and a starting velocity. Duration with bounce is read as Apple's response, as the skill maps them. "damping" alone (2 or less, with no stiffness) is read as a damping ratio. - Works in Apple's two numbers: damping ratio (1 = critically damped, no bounce; lower bounces; above 1 drags) and response (seconds). Stiffness = (2 pi / response)^2 and damping = 4 pi x damping ratio / response, for mass 1. - The preview moves the real element on the exported CSS; a button in the frame plays it both ways; Replay and Slow motion (4x). The curve shows where the spring is each moment until it settles within 0.1% of the distance, with the overshoot and the number of visible bounces (each swing of at least 0.5%). - Options: what moves, damping ratio (0.25-2), response (0.1-1.5 s), starting speed (0-10 distances per second), distance (px) or angle (deg), CSS class name. - Checks, against the apple-design skill: damping ratio 1.0 for menus and moves; about 0.8 (0.7-0.9 accepted) or 1.0 for sheets, flicked cards and rotation, never overdamped; response 0.3-0.4 s; a starting speed only where a finger hands one over. "Fix it" applies the skill's spring for that kind: menu 1.0 / 0.35 s, move 1.0 / 0.4 s, sheet 0.8 / 0.3 s, flick 0.8 / 0.35 s, rotation 0.8 / 0.4 s. - Copies CSS (a transition running for the settle time with a linear() easing that stays within 0.2% of the spring, an ease-out fallback, and a prefers-reduced-motion rule that cross-fades in 200 ms or changes at once), JavaScript (Web Animations), Motion, React Spring, SwiftUI, Jetpack Compose; downloads a standalone .html page; copies a link that reopens the spring. - Keeps a list of the springs you copied or downloaded (in your SkillSafe account when signed in, and in the browser). ## Optional AI step (signed-in, metered) "Pick the spring for me" sends the current kind, damping ratio, response, starting speed, the page's measurements and a description of the interaction, and returns: keep or change, a summary, the kind, the damping ratio and response, the starting speed, what reduce motion shows, the principles at work and what to avoid. The page checks every value against the same rules before offering "Use these settings". API: https://spring-animation-generator.skillsafe.ai/api.html (task "advise"). ## Source Adapted from the agent skill @emilkowalski/apple-design (emilkowalski/skills, MIT, by Emil Kowalski), which translates Apple's approach to fluid, physical motion (WWDC 2018, Designing Fluid Interfaces) for the web: https://skillsafe.ai/skill/@emilkowalski/apple-design