Stats Preview Card Component (SCSS w/ Animation & Hover Effects)
Design comparison
Solution retrospective
Good day Frontend Mentor Community! Here is my solution to the Stats Preview Card Component challenge.
The design layout is quite easy to recognize but where I got struggled a lot was on working with responsiveness mainly on:
- Figuring out how will the image behave inside its container but luckily after some searching, found out the property for that which is
object-fit
:D - Flexible
gap
andpadding
size base on the screen size but was solved usingmin()
function in CSS.
First time using SCSS preprocessor and thankfully learned it fast and managed to utilize it with this project yay! It was a very nice to know it 'cause what they say about it being a "CSS with superpowers" is really true!
Added some features:
- Image hover effect
- Startup animation on first load
- Responsive in different screen devices
Happy to hear any feedback or advice regarding the code and the design! Let me know if there are some best practices to follow in SCSS!
Community feedback
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