VSeed, an elegant data composer, transforming complexity into simplicity.
!!!###!!!title=Animate——VisActor/VRender tutorial documents!!!###!!!!!!###!!!description=Animations in VRender are implemented using the `Animate` instance, which provides various interpolation methods such as `to`, `from`, `wait`, `loop`, `bounce`, `reverse`, `startAt`, and more. These methods can be chained together to create complex animation effects. We create an `Animate` instance using the element's API `animate()`. Before diving into this section, it is recommended to have a good understanding of the element's API to better grasp the usage of animations. You can refer to the [Element](./Graphic) section for the documentation of elements.!!!###!!!
Animation
Animations in VRender are implemented using the Animate instance, which provides various interpolation methods such as to, from, wait, loop, bounce, reverse, startAt, and more. These methods can be chained together to create complex animation effects. We create an Animate instance using the element's API animate(). Before diving into this section, it is recommended to have a good understanding of the element's API to better grasp the usage of animations. You can refer to the Element section for the documentation of elements.
Basic Usage
Here is a basic demo of creating animations:
Graphic.Animate
graphic.animate creates an animation and provides hooks like onStart, onEnd, onFrame.
Sub animations divide the animation into different stages, each stage having independent loop, bounce, reverse, startAt states, and stages are executed sequentially.
animate supports some animation arrangement-related features, allowing users to link different animations without manually calculating the execution time.