diff --git a/en/application-dev/reference/apis/js-apis-animator.md b/en/application-dev/reference/apis/js-apis-animator.md index 2a9c01095ebf3ccfac93d9d96774c103fa2f6e4f..9c1088af3a0fa0c7d15b56f51cdcfa49a9addde9 100644 --- a/en/application-dev/reference/apis/js-apis-animator.md +++ b/en/application-dev/reference/apis/js-apis-animator.md @@ -1,6 +1,7 @@ # Animator -> **NOTE**
+> **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. @@ -22,7 +23,7 @@ Creates an **Animator** object. **Parameters** | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | -| options | [AnimatorOptions](#animatoroptions) | Yes| Animator options. For details, see **AnimatorOptions**.| +| options | [AnimatorOptions](#animatoroptions) | Yes| Animator options.| **Return value** | Type| Description| @@ -213,6 +214,8 @@ animator.oncancel(); onrepeat: () => void +Called when this animation repeats. + **System capability**: SystemCapability.ArkUI.ArkUI.Full **Example** @@ -220,8 +223,6 @@ onrepeat: () => void animator.onrepeat(); ``` -Called when this animation repeats. - ## AnimatorOptions Defines animator options. @@ -231,7 +232,7 @@ Defines animator options. | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | | duration | number | Yes| Duration for playing the animation, in milliseconds. The default value is **0**.| -| easing | string | Yes| Animation interpolation curve. The default value is **ease**.| +| easing | string | Yes| Animation interpolation curve. The default value is **'ease'**.| | delay | number | Yes| Animation delay duration, in milliseconds. The default value is **0**, indicating that there is no delay.| | fill | "none" \| "forwards" \| "backwards" \| "both" | Yes| State of the animated target after the animation is executed. The default value is **none**, which means that the target will retain its end state (defined by the last keyframe) after the animation is executed. | | direction | "normal" \| "reverse" \| "alternate" \| "alternate-reverse" | Yes| Animation playback mode. The default value is **normal**.|