@yishak621
Posted
to make long story simple
1]design the card that has an eye icon in the center using grid or flex ...
2]and then the card must be transparent so use opacity
.card-overlay { display: flex; position: absolute; /*!important*/ border-radius: 7px;
align-items: center;
justify-content: center;
flex-direction: column; top: 0; left: 0; width: 100%; height: 100%; background-image: url(./images/icon-view.svg) no-repeat center; background-color: hsl( 178, 100%, 50%, 0.5 ); /*0.5 is opacity of color to enable transparency*/ opacity: 0; transition: ease-in-out 0.8s; }
3]that card must be hidden unless the user hover over it so in the css add :hover property to be
css .card-overlay:hover { opacity: 1; transition: ease-out transform 0.8s; }