I have partially stacked two images using CSS Grid. The image that the user hovers over increases in z-index
and therefore overlays the other. Users can switch back and forth between those two images.
Now I am wondering if it's possible to give the image that it is currently in "focus"/has the higher z-index
a box-shadow
that appears/disappears, depending which image is on top. Is that even possible using CSS only?
Example of what I mean. And the grey layer seems to have a shadow. http://vrscigroup.com