Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

FAQ accordion card

#accessibility#sass/scss#lighthouse
P

@andreasremdt

Desktop design screenshot for the FAQ accordion card coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
1newbie
View challenge

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 GitHub
Discord logo

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