Skip to main content
The 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()

A simple inertial animation, similar to an object slowly accelerating to speed. Equivalent to bezier(0.42, 0, 1, 1). Example:

elastic()

A simple spring interaction, similar to a spring oscillating back and forth. Parameters:
  • bounciness: Controls how much the animation overshoots (default: 1)
    • 0: No overshoot
    • 1: Slight overshoot (default)
    • > 1: Overshoots multiple times
Example:

back()

Creates an animation where the object goes slightly back before moving forward. Parameters:
  • s: Controls how far back the animation goes (default: 1.70158)
Example:

bounce()

Provides a bouncing animation effect. Example:

Standard Functions

linear()

A linear function, f(t) = t. Position correlates to elapsed time one-to-one. Example:

quad()

A quadratic function, f(t) = t * t. Position equals the square of elapsed time. Example:

cubic()

A cubic function, f(t) = t * t * t. Position equals the cube of elapsed time. Example:

poly()

A power function. Position equals the Nth power of elapsed time. Parameters:
  • n: The power exponent (e.g., 4 for quartic, 5 for quintic)
Example:

Mathematical Functions

sin()

A sinusoidal function. Example:

circle()

A circular function. Example:

exp()

An exponential function. Example:

bezier()

Provides a cubic bezier curve, equivalent to CSS transitions’ transition-timing-function. Parameters:
  • x1, y1: First control point
  • x2, y2: Second control point
Visualize curves at cubic-bezier.com. Example:

Modifier Functions

in()

Runs an easing function forwards (identity function - returns the easing as-is). Example:

out()

Runs an easing function backwards. Example:

inOut()

Makes any easing function symmetrical. The easing function runs forwards for half the duration, then backwards for the rest. Example:

Step Functions

step0()

Returns 1 for any positive value of n, otherwise 0.

step1()

Returns 1 if n is greater than or equal to 1, otherwise 0.

Complete Example

Common Patterns

Smooth Entry Animation

Bouncy Button Press

Smooth Bidirectional

Natural Deceleration