I'm making an accordion pattern and I'm having trouble with changing the icon of the active state
I'm making an accordion and I already have everything ready. It's responsive and it behaves the way I want it to. But I'm still looking for a way to change the icon next to the button. I have tried a bunch of stuff and just can't find a way to do it (and it isn't that relevant but does somebody know why when my accordion opens or closes the background moves? I would appreciate if somebody knows. If not, no biggie.)
Here's what's happening, how it should be looking, the codepen, and the repository (because all the images are local and it looks weird on codepen. There's a GitHub page on the repository). Thanks in advance.
norwyx.github.io/faq-accordion/
https://codepen.io/norwyx/pen/poYqvvR
https://github.com/Norwyx/faq-accordion
Here's what's happening, how it should be looking, the codepen, and the repository (because all the images are local and it looks weird on codepen. There's a GitHub page on the repository). Thanks in advance.
norwyx.github.io/faq-accordion/
https://codepen.io/norwyx/pen/poYqvvR
https://github.com/Norwyx/faq-accordion

GitHub
Contribute to Norwyx/faq-accordion development by creating an account on GitHub.
