Guides / Motion

Mask / Clip-path Reveal

Mask / clip-path reveal: content is uncovered from a point or an edge by animating a clip-path—a circle from the click point, or a wipe from a side. Great for theme switches, page transitions and image reveals; the mask animates, not the content, so it stays smooth.

Live demo

Day Click anywhere

Implementation prompts

Standard

Mask reveal on click: the new layer expands as a circle from the click position using clip-path: circle(0 at X Y) to circle(150% at X Y), 0.7s cubic-bezier(.65,0,.35,1); clicking again collapses it. Use inset() for edge wipes. With prefers-reduced-motion, switch instantly without animation. Keep hidden content out of the tab order (inert / aria-hidden).

With motion

Clip-path reveal with a circle expanding from the pointer (CSS custom properties --x and --y), eased over 700ms; the revealed content scales from 1.08 to 1 for depth; reverse animation on close. Optionally use the View Transitions API with a clip-path keyframe when supported, falling back to a CSS transition.
Design spec entry
### Mask / Clip-path Reveal (#clip-reveal)

Category: Motion

Mask / clip-path reveal: content is uncovered from a point or an edge by animating a clip-path—a circle from the click point, or a wipe from a side. Great for theme switches, page transitions and image reveals; the mask animates, not the content, so it stays smooth.

- Do: Mask reveal on click: the new layer expands as a circle from the click position using clip-path: circle(0 at X Y) to circle(150% at X Y), 0.7s cubic-bezier(.65,0,.35,1)

- Do: clicking again collapses it

- Do: Use inset() for edge wipes

- Do: With prefers-reduced-motion, switch instantly without animation

- Do: Keep hidden content out of the tab order (inert / aria-hidden)

With motion: Clip-path reveal with a circle expanding from the pointer (CSS custom properties --x and --y), eased over 700ms; the revealed content scales from 1.08 to 1 for depth; reverse animation on close. Optionally use the View Transitions API with a clip-path keyframe when supported, falling back to a CSS transition.

Live demo: https://uidesignmd.com/guides/clip-reveal/