Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Stats Preview Card Component (SCSS w/ Animation & Hover Effects)

Khent Alba 440

@Lemon1903

Desktop design screenshot for the Stats preview card component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

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 and padding size base on the screen size but was solved using min() 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 GitHub
Discord logo

Join 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