Image FXcssimagelab.com
Frame · 36 / 56

Passe-Partout

A gallery double-mat — an outer board plus a thin contrasting reveal line — the framer's French-matting trick.

Image
Green natural landscape

Hover the photo to apply the effect — move away to compare.

Adjust
20px
4px
Metadata
interaction
Always on
browser
Universal
reduced motion
static
touch fallback
Identical on touch
Edit the CSS above — the preview updates live.

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.