Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted 10 months ago

Blog Preview Card with CSS transition on hover

animation
Zarak•100
@zarak
A solution to the Blog preview card challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


What are you most proud of, and what would you do differently next time?

I tried to organise my CSS better by nesting and using & for the hover selector. One thing I could perhaps do better is to organise my use of fonts better with variables. I should also probably use variable names for the colours that match the names in the design spec.

What challenges did you encounter, and how did you overcome them?

I managed to do a better job with spacing in this project compared to the previous project. I used the spacing values in the design document as variables in CSS. This made the look match the spec more easily, and it is has a more consistent layout all around. This also helps with making adjustments to make the layout responsive.

What specific areas of your project would you like help with?

Could I simplify the structure of my HTML? I have a lot of wrappers - maybe some of them are unnecessary? Am I overusing flexbox? It's easy enough to use that I use it everywhere - but perhaps there are cons to overdoing it?

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 Zarak'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

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