to-spring-or-not-to-spring
Back to list

raphaelsalaja/to-spring-or-not-to-spring

To Spring Or Not To Spring

GitHub

Audit animation timing choices to decide when springs versus easing curves produce better motion.

261 installsMotionPerformanceFrontend4 demos

Real-world examples

Live HTML demos for this skill — rendered directly in the page. 4 examples.

  1. 01

    Decision framework

    Ask once: user-driven or system speaking? Tap each motion type to feel Spring, Easing, Linear, or None — and see why that timing wins.

  2. 02

    Springs for gestures

    Drag and flick both cards. The spring keeps velocity and survives interruption; the timed ease always finishes the same way.

  3. 03

    Easing for system state

    Modal enter ease-out / exit ease-in vs a restless spring toast. System announcements want a clear start and end.

  4. 04

    Duration & no animation

    Hover at 150ms vs 400ms, and typing feedback with vs without motion — high-frequency UI should stay quiet.

More from raphaelsalaja