Origin-aware animation

Expand or scale from the trigger point to preserve spatial continuity.

Preview

Entrance geometry begins at the control or location that triggered the new surface, preserving their spatial relationship.

Preview
Origin-aware animation

Implement Origin-aware animation: Expand or scale from the trigger point to preserve spatial continuity. Use Duration 220ms, Start scale 88%, Motion origin top-left, Easing soft. Trigger it once when state changes and keep it replayable. Use semantic HTML, scope CSS to .motion-demo--origin-aware-animation. Provide equivalent low-motion behavior for prefers-reduced-motion and .force-reduced-motion.

Learn more