Submitted about 4 years ago
responsive website using HTML, CSS and javascript
@sudhanshusaurav
Design comparison
SolutionDesign
Solution retrospective
how to add transition on click in FAQ section. i used display property that's why transition is not working. Is there any other option.?
and what more i could do better.??
Community feedback
- @DiarrahPosted about 4 years ago
You can add a transition by making the answer portion of the FAQ a max-height of 0 and then when you push the button you make it the full height. If you look at my solution to this you will see what I'm talking about. Hope that helps.
1
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