Overview
A clip-path reveal transition exposes an already-laid-out element by changing its painted visible region. The target box keeps the same dimensions while a child layer moves from a hidden shape to a visible shape, so neighboring UI does not reflow during the effect.
When to use it
Use it for cards, links, media thumbnails, command buttons, and panel previews where the reveal should feel more authored than a fade but must not push layout. Choose the expression method first: inset() for a directional wipe, circle() for an origin-based open, and polygon() for an angular shutter. Do not split patterns only because the domain or color changes.
How it works
The parent reserves the final geometry with fixed dimensions or aspect-ratio. The reveal layer sits in the same grid area as the base content and starts with a hidden clip-path. Hover and :focus-visibletransition that layer to a compatible visible shape. For polygon animation, keep the same number and order of points so interpolation is predictable.
Production gotchas
Avoid animating width, padding, border thickness, height, or line-height to fake the reveal; those properties can push adjacent controls. Decorative clipped overlays can still sit above the target, so keep input handling on the stable parent and use pointer-events: none when an overlay should never intercept clicks. Large clipped media can repaint heavily, especially in dense grids.
Accessibility
The real label, image alternative, or content summary should remain available outside the decorative clipped layer. Pair :hover with :focus-visible and keep a visible outline outside the clipped area. Under prefers-reduced-motion: reduce, skip the transition and show the final revealed state.
References
Implementation depth
Clip-path reveal is a paint-region transition, not a layout transition. The reusable mechanism is a fixed parent box with a reveal layer whose inset, circle, or polygon shape moves from hidden to visible while the box metrics stay unchanged.
The expression method should drive the example set. Inset wipes, circle-origin reveals, and polygon shutters are different patterns of visibility; changing only product domain or color is not enough. Test focus-visible, pointer handling, reduced motion, and dense-grid paint cost before shipping it widely.