
Responsive FAQ accordion using React, Tailwind and Framer motion
Design comparison
Solution retrospective
This challenge was really amazing! Although it took me some time, I learned new things from it. I explored the Framer Motion library and how it works, in addition to discovering a new fact about navigation using the Tab key. I didn't expect it to be this easy—basically, you just add the tabIndex attribute to the element you want to navigate to.
However, the downside was that moving forward and backward between questions was only possible using the Tab key, which I found time-consuming. So, I came up with another solution: I added an alternative navigation method using the Up and Down arrow keys to make the process smoother.
It was really fun! You can check out the code and see for yourself. 🚀
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