Circle Reveal

A dark overlay covers the image and shrinks to a circle from the center on hover/focus, revealing the image beneath.

Circle Reveal demo

Hover or focus the image to see the effect.

HTML

description

CSS

.hover-effect.circle-reveal{
  position: relative;
  display: block;
}
.hover-effect.circle-reveal::before{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  clip-path: circle(150% at 50% 50%);
  transition: clip-path 0.5s ease;
  pointer-events: none;
}
.hover-effect.circle-reveal:hover::before,
.hover-effect.circle-reveal:focus-visible::before{
  clip-path: circle(0% at 50% 50%);
}

The ::before covers the image and shrinks from clip-path: circle(150%) to circle(0%) on hover/focus, revealing the image via a circular iris. Select the code and copy with Ctrl+C or ⌘C.