Core Props Examples       Comp Projects

AniNumber (Animated Number)

This is a wrapper around a number. Props like rotation,opacity,fontSize etc are of type AniNumber


AniNumber provides the following mathods.

Set and Goto Methods

animate(startTimSec, endTimSec, startValue, endValue)

Animate is the main method for creating animations. We simply have to provide the startTime in seconds, the endTime in seconds and also the start value and the end value.

The start value can be smaller than the end value.

When the animation starts if the value of the prop is not equal to the start value of animation it will be set equal to the starting value of animation.Keep this point in mind for smooth animation.