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

Faq Accordion Main

Francesco•340
@FraCav99
A solution to the FAQ accordion 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?

What I really enjoy of this challenge is how is easy is to make accordion with just plain html thanks to the tag.

Aside that, I'm pretty happy of the overall results.

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

Unfortunately, at the moment trying to animate the details element is not an easy task and there's no native way in CSS to do it without the support of a bit of JS.

I found different solutions online on how to animate them, but I didn't implement any animation and stick with the default open/close offered natively by the element itself.

I didn't because at this stage I felt it was a bit like cheating trying to recreate the same exact solution, so maybe in the future when I will have a bit more knowledge about how DOM and animation work with JS, I'll try to implement it by myself.

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

What I really want help to is about the sizing of the background image, cause I set it to 100%, so it will grow a lot on bigger screens.

The positioning of the card doesn't quite match the design. I used grid positioning on body to place items in the center.

I would like to find a way to expand the details not to the top but to the bottom (I've seen solutions that when you expand the details, they do to the bottom)

Hints on the typography would be great as well

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