Aha! Okay I’m really grateful you shared the file because that helped me see the issue. Actually, you’ve already identified it yourself! Right here:
The issue lies with your ❖ Icon Button component. Since you can’t edit the rotation of nested layers, you’re not able to make the animation happen.
I’m a bit surprised to see an icon button within an accordion, but perhaps this is a developer requirement you have? I am more used to the entire top area of accordions (the part you click on to reveal the content) being using a <button>
HTML tag. So having a button inside a button (as your structure suggests) seems like it could cause trouble… But you of course have more context than me! I should not try analyzing your layer architecture on assumptions from afar 🙏
In the event your current layer architecture and approach is the best for you and your team, I’d recommend a set up like this:
-
A chevron with a single variant property called “rotation” with two values: 0, 180. The “180” variant is rotated on the container level, not the nested vector.
-
This will allow you to use an instance of Icon Button inside the Accordion. You can swap your default icon for the chevron with the “rotation” property from step 1.
-
On the open state of the Accordion, click through the layers until you have the chevron icon within the Icon Button instance selected and change the variant from 0 to 180

I’ve updated and re-published the community file that I used to create the examples above. I see in your file your ❖ Icon Button has addition layers named “container” and “state” (I’m very curious about these!)—this method should work even with those layers present. Just a bit more clicking/drilling down to do in step 3 😁
Thanks for your patience! I do hope this helps you get where you’re trying to go 🙏 let me know if not.