Micro-interactions

Magnetic Dock

Pro

A dock whose items swell under the pointer and carry their neighbours part of the way with them. One shared value drives the whole row, so nothing re-renders while you sweep across it — and focusing an item writes the same value, which is why the keyboard gets the identical effect rather than a substitute for it.

Install

Props

What It Demonstrates

Hover effect
Visual change when the cursor moves over an element.
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.
Damping
How quickly a spring settles. Lower damping means more bounce and oscillation.
Spatial consistency
Animating so an element keeps its identity and position across states, so users never lose track of where things went.
Follow-through
Parts of an element keep moving and settle slightly after the main motion stops, adding weight.
Purposeful animation
Motion should serve a function — orient, give feedback, show relationships — not just decorate.

Related Components

Appears In