Easing module implements common easing functions used by Animated.timing() to convey physically believable motion in animations.
You can visualize easing functions at easings.net.
Predefined Animations
ease()
bezier(0.42, 0, 1, 1).
Example:
elastic()
bounciness: Controls how much the animation overshoots (default: 1)0: No overshoot1: Slight overshoot (default)> 1: Overshoots multiple times
back()
s: Controls how far back the animation goes (default: 1.70158)
bounce()
Standard Functions
linear()
f(t) = t. Position correlates to elapsed time one-to-one.
Example:
quad()
f(t) = t * t. Position equals the square of elapsed time.
Example:
cubic()
f(t) = t * t * t. Position equals the cube of elapsed time.
Example:
poly()
n: The power exponent (e.g., 4 for quartic, 5 for quintic)
Mathematical Functions
sin()
circle()
exp()
bezier()
transition-timing-function.
Parameters:
x1, y1: First control pointx2, y2: Second control point
Modifier Functions
in()
out()
inOut()
Step Functions
step0()
n, otherwise 0.
step1()
n is greater than or equal to 1, otherwise 0.