
Hover to snap the frame behind the image.
Frame · 09 / 12
Offset Frame
An outlined frame offset behind the image that snaps in on hover.
Adjust
14px
2px
420ms
Edit the CSS above — the preview updates live.

Hover to snap the frame behind the image.
An outlined frame offset behind the image that snaps in on hover.
Offset Frame needs room around the figure (margin) because it draws an outlined frame beyond the image bounds. The frame is visible at rest, so the effect still reads on touch. Reduced-motion users see the resting offset.
Modern evergreen. Give the figure surrounding space (a wrapper margin).