Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted over 2 years ago

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

sass/scss, animation
Khent Alba•440
@Lemon1903
A solution to the Stats preview card component challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

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!

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on Khent Alba's solution.

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

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner
  • Use cases

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License