Design comparison
SolutionDesign
Solution retrospective
This FAQ challenge helped me familiarize myself with creating accordions from scratch. I know Bootstrap has an accordion component but I like trying to build these components myself. I used Javascript to dynamically get the max-height of a container by using its scrollHeight so that I can create a smooth transition when opening and closing the accordion. I enjoy completing projects with HTML, CSS and JS but maybe in the near future I will use frameworks or libraries.
If anyone has any feedback for me, I'll appreciate it so much! Thank you all.
Community feedback
Please log in to post a comment
Log in with GitHubJoin 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