Submitted over 4 years agoA solution to the FAQ accordion card challenge
FAQ accordian card using HTML, SCSS, and JS
@syedalimansoor

Solution retrospective
Hello!
How did you tackle the problem of transitioning the FAQ answers' heights when they expand from 0 to auto?
I kept height constant at auto, and instead transitioned the max-height from 0 to a hard-coded value, in this case, 4em.
Do let me know if there is a better way. Thanks!
Code
Loading...
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Syed Ali Mansoor'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