Design comparison
SolutionDesign
Solution retrospective
Hey there! This is my solution to the FAQ accordion card challenge. I used Sass in combination with accessible HTML.
The FAQ section is powered by the details
element, making it work without JavaScript by default. However, to enhance the UX with some nice transitions, I added a little bit of JavaScript to animate the opening/closing state of each question.
Additionally, I used a combination of responsive images (via srcset
) and CSS background-images to glue the illustration together.
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