-
I'm using Image rotation animation to emulate a vinyl spin, and need to pause and resume the animation based on some state change. Can't find any documentation mentioning animation pause and resume. My main language is C++, BTW. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
Thanks for your issue. (I moved it into discussion to keep the issues for bug tracking) The way to do permanently running animation is to use the animation-tick() builtin function. |
Beta Was this translation helpful? Give feedback.
-
Thanks, works like a charm! |
Beta Was this translation helpful? Give feedback.
-
A small issue though, when the animation is applied, it consumes quite a bit of CPU, about 15% on my M2 MacBook Pro, maybe could be optimised later? |
Beta Was this translation helpful? Give feedback.
-
Replicated the same animation with Objective-C on MacOSX and here's the performance result. |
Beta Was this translation helpful? Give feedback.
Thanks for your issue. (I moved it into discussion to keep the issues for bug tracking)
The way to do permanently running animation is to use the animation-tick() builtin function.
Depending on the state, you can use it to make the angle vary, or not.
Example