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 Component using vanilla JavaScript

EmrePWβ€’ 150

@EmrePW

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


How can I animate buttons rotating and stuff? with javascript I can only make them turn instantly.

Community feedback

P
visualdennisβ€’ 8,375

@visualdenniss

Posted

Hi Emre,

nice work with the FAQ. Regarding buttons: you don't need this: button.style.transform = "rotate(0deg)";

instead handle this with classes, e.g. button-active { transform: rotate(180deg)}, this way when you add a transition to button { transition: all .4s ease} it will animate.

Hope you find this feedback helpful!

Marked as helpful

1

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