Is there a way to prevent layout animation from triggering multiple times during screen resolutio...
Hi there,
I'm currently working on a responsive UI and have a question regarding animations.
To ensure that UI elements transition smoothly when the screen resolution changes, I'm using a layout animation feature. However, I've run into an issue where the layout animation doesn't play just once — instead, it seems to trigger multiple times during the resolution change. This results in the animation appearing sluggish or choppy, almost like a glitch.
On the other hand, when I look at the Layout JS example in Rive, the position transitions look very clean — the animation seems to play just once, smoothly and naturally, which is exactly what I want to achieve. But despite trying different things and searching extensively, I haven’t found a clear solution for this issue.
As a temporary workaround, I’ve tried reducing the duration of the animation so that it completes quickly, making it appear smoother. While this helps a bit, it doesn't really solve the core problem.
I’d really appreciate your help with the following:
1. Is there a way to ensure the layout animation only runs once during a resolution change?
2. Alternatively, is there a method to prevent repeated triggers or manage them more smoothly to avoid the choppy behavior?
Any advice or best practices on how to keep these transitions smooth and performant would be a huge help.
Thank you for your time! If you need any more details, I’d be happy to share them.