Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.rebellapp.com/llms.txt

Use this file to discover all available pages before exploring further.

Use this API to create an animation instance that can be used to define and export animations.

Parameters

PropertyTypeRequiredDescription
durationNumberNoAnimation duration in ms (default: 400)
timeFunctionStringNoTiming function: linear, ease, ease-in, ease-out, ease-in-out
delayNumberNoAnimation delay in ms
transformOriginStringNoTransform origin (default: 50% 50% 0)

Return Value

Returns an Animation object with chainable methods.

Code Example

const animation = my.createAnimation({
  duration: 1000,
  timeFunction: 'ease'
});

animation.scale(2).rotate(45).step();

this.setData({
  animationData: animation.export()
});
<view animation="{{animationData}}">Animated content</view>

my.createLottieContext

Create Lottie animation