Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted about 1 year ago

Article Review

sass/scss
Eugen•200
@psdesignro
A solution to the Article preview component 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 have learned how to toggle classes in order to hide or show an element. I've also practiced a bit the positioning of the elements. This time I used a simple structure for the SASS, just one file, as there were one main component on the challenge.

Regarding JS, at first I've used a conditional construction to hide/show the share tooltip, but it didn't have a smooth transition, so I used a class toggle instead and played with opacity, which allows smooth transitions.

For future projects I want to try to position the tooltip based on the mouse position, not on some fixed values.

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

The first challenge for me was the positioning of the tooltip on the desktop, then it took me some time to figure out how to get that arrow button on top, and then I remembered that z-index works only with position:relative.

Later I've tested 2 ways to hide.show the tooltip and kept the shortest one, which also has some smooth tranistions.

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

For this challenge I'm ok, but if you find something I can improve in my code, please share your thoughts!

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