I have a component with 2 variants and an auto-animate transition between them triggered by a click.
The component is then placed on a page with “fix position when scrolling” enabled.
It all works as expected when the page loads and no scrolling has happened.
If I scroll down, the component stays where it should but the animation that is triggered by a click stops working and the component simply jumps from one variant to the other with no auto-animate.
How do I fix this?