Fade in / Fade out

Introduce or remove an element with opacity for low-distraction state changes.

Preview

An opacity transition brings an element into view or carries it out without changing its geometry.

Preview
Fade in / Fade out

Implement Fade in / Fade out: Introduce or remove an element with opacity for low-distraction state changes. Use Duration 220ms, Start opacity 0%, Delay 0ms, Easing calm. Trigger it once when state changes and keep it replayable. Use semantic HTML, scope CSS to .motion-demo--fade-in-fade-out. Provide equivalent low-motion behavior for prefers-reduced-motion and .force-reduced-motion.

Learn more