@lr6kidy
Posted
Hi Moruf!
There might be a more effective way to do the hover effect, but this is how I did it:
I created a <div>
the exact same size as the image, with a background-color
of the bright cyan color listed in the style guide, and placed it over the image.
I used position: absolute;
to place the eye icon in the middle of said <div>
.
I then set the opacity
of both the div and the icon to 0, so that they don't normally appear.
I changed the opacity to 0.5 for div:hover
and to 1 for icon:hover
.
I hope this helps in any way!