This is a solution to the NFT preview card component challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.
Users should be able to:
- View the optimal layout depending on their device's screen size
- See hover states for interactive elements
- Solution URL: Frontend Mentor solution
- Live Site URL: NFT preview card component
ONLY WITH
- Semantic HTML5 markup
- CSS custom properties
lernd how to do hover on image with another image
.overlay{
position: relative;
}
.imgequ{
width: 100%;
border-radius: 8px;
display: block;
}
.icon{
position: absolute;
top: 0;
background: hsla(178, 100%, 50%, 0.5);
transition: 0.5s ;
opacity:0;
border-radius: 8px;
padding: 42%;
width: 16%;
}
.overlay:hover .icon{
opacity: 1;
}
Why Not!
I realy love this site
- Website - working on it
- Frontend Mentor - @AmrEwais