Hello GSAP,
I have an icon animation that juggles between two states as well as a breakpoint definition that changes the dimension of its parent element (via a class exchange).
The problem is that when the parent's class is changed, and therefore its dimension, the icon is no longer correct. It seems to me that, ideally, CSS should be managed via GSAP, but my component is responsible for displaying different icons, and their sizes are defined via a props (so via the parent).
The fact that the size (and therefore the props) changes is exceptional, so I can hardly envisage rewriting all my components.
Is there a way to fix this problem without changing the overall logic of the element?
Thank you in advance, in the hope that someone can help me out of this trivial but endless problem.