Submitted over 2 years ago
NFT preview card component using flexbox and pseudo elements
@pyaetheiN
Design comparison
SolutionDesign
Solution retrospective
This challenge wasn't very easy, however I learned how to make double image overlay!
Things I learned:
- two ways to code double image overlay
- using
:hover::after
pseudo-elements - adding additional containers (html line 24 for context)
- adding a specific property on transition e.g.
transition: background-color 0.3s;
inset
CSS property is a shorthand that corresponds to the top, right, bottom, and/or left properties. It has the same multi-value syntax of the margin shorthand. e.g.inset: 0;
->top,right,bot,left = 0;
Community feedback
- @last-orbitPosted over 2 years ago
Hey this looks really good, your code looks very well structured. I hadn't seen the "&" symbol before but it seems like it really helped in not repeating code.
1@pyaetheiNPosted over 2 years agoHello @last-orbit! Thanks for your compliment, it's called BEM (Block Element Modifier). You can boost your CSS with BEM naming and SASS nesting.
0
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord