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

Front-end_Mentor_FAQ_Accordion

P
Thomas•550
@TomSif
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?

I like my css for once I find it well organized, and annotated :)

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

I struggled at the beginning because I had misunderstood how to activate the answers. I had gone only with clicking on the icon and I realized afterwards that it was the whole question that had to be focussed. I solved this by wrapping the whole question in a button container which is naturally 'focussable'

Still having small javascript syntax problems, I know what I want to do and how to do it, but I admit that sometimes the logic of the language still escapes me, but by doing it, I have the impression that it begins to make sens.

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

All the advice is good to take, I will be curious to see how to make a beautiful accordion transition, very fluid for the deployment of the answer when we click on the question, I adjusted the opacity otherwise the answer appeared on the lower container when launching the animation, but there was perhaps something better than playing on the max-height. Thanks in advance to those who pass by and leave a little comment :)

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