
Submitted 4 months ago
Accordion using nextElementSibling and classList.toggle
@Darionvr
Design comparison
SolutionDesign
Solution retrospective
What are you most proud of, and what would you do differently next time?
I'm starting to learn how to work with nextElementSibling, and I think it is a very useful tool for this kind of code.
What challenges did you encounter, and how did you overcome them?I need more practice making animations in CSS. I was stuck on the height animation until I found that 'height' is not animable but 'max-height' is.
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