Crossfade

Crossfade overlapping, similarly sized states to reduce visual jumps.

Preview

Two overlapping states exchange opacity over the same interval, handing visual focus from one to the other.

Preview
Previous
Crossfade

Implement Crossfade: Crossfade overlapping, similarly sized states to reduce visual jumps. Use Duration 200ms, Overlap 50%, Easing calm. Trigger it once when state changes and keep it replayable. Use semantic HTML, scope CSS to .motion-demo--crossfade, and mount the provided vanilla JavaScript interaction runtime. Provide equivalent low-motion behavior for prefers-reduced-motion and .force-reduced-motion.

Learn more