Micro-interactions

Passcode

A one-time-code field whose cells answer every keystroke. Each character lands compressed and springs back, a paste distributes across the row rather than filling it on one frame, a wrong code shakes and clears itself, and a right one folds the whole row into a tick. Underneath there is exactly one real input holding the whole code, which is what keeps SMS autofill, password managers, select-all and a screen reader working. None of those survive six inputs with maxLength one.

Install

Props

What It Demonstrates

Spring
Motion driven by physics (tension, mass, damping) rather than a set duration.
Stiffness / Tension
How strongly the spring pulls toward its target. Higher feels snappier.
Anticipation
A small wind-up in the opposite direction before a move, hinting at what's about to happen.
Scale
Make an element bigger or smaller.
Pop in
Element appears with a slight overshoot, like it bounces into place.
Stagger
Animate several items one after another with a small delay between each, creating a cascade.
Shake / Wiggle
A quick side-to-side jitter signaling an error or rejected input.
Morph
One shape smoothly turns into another shape, e.g. Dynamic Island.

Related Components

Appears In