This is a solution to the NFT preview card component challenge on Frontend Mentor.
Note: Delete this note and update the table of contents based on what sections you keep.
Users should be able to:
- View the optimal layout depending on their device's screen size
- See hover states for interactive elements
- Solution URL: Solution URL
- Live Site URL: Live site URL
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
Note: These are just examples. Delete this note and replace the list above with your own choices
.overlay {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
height: calc(100% - 1.2em);
width: 100%;
opacity: 0;
border-radius: 10px;
transition: .3s ease;
background-color: hsla(var(--cyan-o), 0.6); /* to add opacity to background specifically, without affecting the icon */
}
I will create a development branch off of this master branch to -
- reduce the CSS I have used without affecting the output.
- W3schools - This helped me to give the overlay of the icon on the image.
- Website - Akshaykumar I. Magrani
- Frontend Mentor - @akshaymagrani
- Twitter - @akshaymagrani