@dostonnabotov
Posted
Hi, there. You can add an eye icon and background-color, using pseudo-elements. For example, in .card::before
, you add background-color
, and in .card::after
, you add your icon as background-image
. You have to make sure that both are set their opacity
to 0. When hovered, in .card:hover::before
and .card:hover::after
, you add opacity
to make it visible. You can view my solution as well if you want where I used this strategy.
Marked as helpful