CSS image hover trick

Trick with two stacked images and clip-path on hover. A practical tutorial.
Post text
one way w/ css 🪄 stack an image 2x filter 1st, unclip 2nd on :hover 🤙 a img { grid-area: 1 / 1; } img:first-of-type { filter: grayscale(1) invert(1); } img:last-of-type { clip-path: circle(0); transition: clip-path; } a:hover img:last-of-type { clip-path: circle(100%); }
Open the post on X ↗Open in the archive
Similar references
- Stacked tags that expand on hover · Gabriel
- User stories and job stories · @ParvSondhi
- Nine sections of a landing page · @namyakhann
- Tiny Big Details · @nickbakeddesign
- Nested steps · @nandafyi
- Gary Simon's UI/UX course in Figma · @designcoursecom