All Products
Search
Document Center

Mobile Platform as a Service:animation

Last Updated:Feb 04, 2026

The animation module provides an interface for running animations on child components. It supports simple transformations on a component, such as changes to its position, size, rotation angle, background color, and opacity.

You can call the loadKeyframes(keyframes) method to load the animation keyframes.

Parameter

Type

Description

keyframes

object

The keyframe parameters.

name{string} is the animation name.

values{list}_NativeStyleKeyFrameProperty is the data. It is a dictionary in the format {'p':number; 'v':string}, where p represents percent and v represents value.

The keyframes object defines multiple animation effects. Each outer key, such as fluctuate, is the name of an animation effect. The value of the key is a list of changing animation properties, such as transform. The inner 'p' and 'v' keys represent the progress and property value of the animation, respectively. For more information, see Animation.