Fat• 850
@Fahatmah
Posted
Hello Nicholas Albuquerque! 😊
I think you just need your .card-banner
give a position: relative;
and then you can try this:
.card-banner::before {
content: url(images/icon-view.svg);
background-color: var(--Cyan);
position: absolute;
display: flex;
align-items: center;
justify-content: center;
inset: 0;
opacity: 0;
z-index: 20;
width: 100%;
height: 100%;
transition: 0.5s;
cursor: pointer;
}
This was what I did to mine. Hope it helps you! 😊
0