About Passe-Partout
Passe-Partout frames the photo like a gallery double-mat: an outer mat board (the card background), a thin contrasting reveal band (::before) showing as a ring around the image, and a beveled inner edge (::after inset box-shadow). The image is inset by the mat width plus the reveal width so the reveal shows exactly --ifx-reveal wide. Tune --ifx-mat (board width), --ifx-reveal (reveal line width), --ifx-mat-outer and --ifx-reveal-color. Pure box-model + box-shadow — universal support, identical on touch, no reduced-motion handling needed.
Use cases
- gallery
- portfolio
- print
- editorial
Browser support
Universal.
Accessibility
- Essential content is never hidden behind hover.
- No motion — nothing to reduce.
- Touch fallback: identical on touch.
- Keyboard accessible — the effect also triggers on focus-within.