Multi-layered image hover effect with CSS
Layered image playground
Hover over the image area with a mouse, or check Show layers to keep the stack open. On a keyboard, focus the checkbox and press Space.

Four copies of one original illustration create the depth effect. Only the top image has descriptive alt text. Reduced motion removes the transition; the checked state still reveals the layers instantly.