# Animation > **NOTE:** >The initial APIs of this module are supported since API version 6. Newly added APIs will be marked with a superscript to indicate their earliest API version. ## Modules to Import **requestAnimationFrame**: none **cancelAnimationFrame**: none **createAnimator**: ``` import animator from '@ohos.animator'; ``` ## Required Permissions None ## requestAnimationFrame requestAnimationFrame\(handler\[, \[ ...args\]\]\): number Requests an animation frame. - Parameters
Attributes of the Animator to be created. For details, see the options table. |
Duration for playing an animation, in milliseconds. The default value is 0. |
|||
Animation delay duration, in milliseconds. The default value is 0, indicating that there is no delay. |
|||
Animation start/stop mode. The default value is none. For details, see animation-fill-mode. |
|||
Animation playback mode. The default value is normal. For details, see animation-direction. |
|||
Number of times that an animation is played. The default value is 1. If this parameter is set to 0, the animation is not played. If this parameter is set to -1, the animation is played for an unlimited number of times. |
|||
Start point of the animation easing. If this parameter is not set, the default value 0 is used. |
|||
End point of the animation easing. If this parameter is not set, the default value 1 is used. |
Updates the animation parameters. The input parameters are the same as those of createAnimator. |
||