@adram3l3ch
Posted
you can either add a new div or wrap the image in a div.
<div class="image-wrapper"> <img/> </div>style{ .image-wrapper::after{ content:""; position:absolute; inset:0; background:/that cyan with a less opacity/ opacity:0; } .image-wrapper:hover::after{ opacity:1; } }
Marked as helpful