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
- Live Site URL: Frontend Mentor | NFT Preview Card Component
- HTML5
- CSS3
Use this section to recap over some of your major learnings while working through this project. Writing these out and providing code samples of areas you want to highlight is a great way to reinforce your own knowledge.
To see how you can add code snippets, see below:
.container .image div {
position: absolute;
top: 0;
background-color: hsl(178, 100%, 50%, 60%);
width: 100%;
height: calc(100% - 5px);
z-index: 999;
opacity: 0;
transition: opacity 0.3s ease-in-out;
}
.container .image div:hover {
opacity: 1;
cursor: pointer;
}
- Hover animations
- Spacing and indentations
- Kevin Powell YouTube Channel - He is a CSS evangelist and helped me with little tips and tricks along the way on the animations, and provided a great understanding on the usage of margin and padding.
Aparajit Balaji
- Frontend Mentor - @yourusername