Core Props Examples       Comp Projects

AniPerc (Animated Percentage)

This is a wrapper around a Percentage.

AniPerc is just like AniNumber except that it works on percentages and not on normal numbers. For that purpose it works different internally.


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.