Submitted
š¤ Hi guys! Here's my solution to the "NFT preview card component" challenge!
These challenges are really cool to do, I feel like I'm improving a bit with each one. In this one in special I tried new things, first I used CSS variables for color, which makes it really easy to change the color later if needed.
I also had to study how to make the eye overlay on hover effect, since the images needed to be overlapping it was a bit challenging to do at first. I went a step further and tried to make the image expand on click, but since it needed JS and I wanted to stick with just HTML and CSS, I ended up using active
. It was not ideal since you have to maintain left mouse click pressed, but it did the trick.
As a newbie, I'll be happy to hear any feedback and advice!