Morph

Create continuous transformation between before and after layouts of a shared element.

Preview

Interpolated geometry reshapes one visual form into another across a continuous transition.

Preview
Morph

Implement Morph: Create continuous transformation between before and after layouts of a shared element. Use Duration 260ms, Continuity mode morph, Distance 48px, Start scale 86%, Easing soft. Trigger it once when state changes and keep it replayable. Use semantic HTML, scope CSS to .motion-demo--morph, and mount the provided vanilla JavaScript interaction runtime. Provide equivalent low-motion behavior for prefers-reduced-motion and .force-reduced-motion.

Learn more