Information in advance:
You can check out the current code or view the live demo (hover image functionality not included) at .
The concept:
I would like to have it so that when I hover my cursor (displayed as a black circle) over the image, only the specific part of the image that the cursor is hovering over is shown, rather than the entire image.
The issue:
Where should I begin? I've come across some CodePens that utilize Z-Index for this effect. However, my attempts have not been fruitful so far. Any example website showcasing similar functionality would be greatly helpful.
For clearer understanding, here are two additional example images.
https://i.sstatic.net/MTE7p.png
In the first image, the smaller circle / cursor (black / turquoise circle) hovers over the circular text but does not intersect the actual image yet, hence it remains hidden.
https://i.sstatic.net/AAzAV.png
In the second image, the cursor is positioned slightly above the image, revealing that specific part of the image.