Skip to content
Submitted over 3 years ago

FAQ Accordion Javascript CSS and Basic HTML

LVL 3
Caleb Sim410
@CodeLamp168
A solution to the FAQ accordion card challenge

Solution retrospective


Been a while since I used javascript, so the script feels needlessly complex for something as simple as a click event.

Would love some tips on how to deal with javascript in this situation.

Had to configure the answers' class in the css to absolute and push them far away from the entire body so I could animate a transition instead of a sloppy display block reveal. If any alternatives to this solution, I would love to know.

Code
Loading...

Please log in to post a comment

Log in

Community feedback

No feedback yet. Be the first to give feedback on Caleb Sim’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