After Effects expressions library

Life is easier with After Effects expressions, but writing them can be daunting. That's why our team spent hours on writing and testing the most useful After Effects expressions for you.

background elegant lines mesh transparent image

All expressions

Filter
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Randomness

Random Seeded Color Expression

Generating random colors consistently for text layers, ensuring each layer gets a unique color.

See expression
Transformation

Parent Position Offset Expression

Offsetting a child layer’s position by 100 pixels relative to its parent.

See expression
Interpolation

Scale Based On Distance

Scaling an object based on its distance from another object in the scene.

See expression
Randomness

Random Rotation Expression

Randomizing the rotation of layers in a starburst pattern, between 0 and 360 degrees.

See expression
Transformation

Parent Scale Expression

Increasing the scale of a child layer by 10% compared to its parent layer.

See expression
Randomness

Wiggle with Seed Expression

Creating a wiggle effect on position with a set seed, ensuring the randomness is consistent across renders.

See expression
Motion

Looping Wiggle

Use this on the Position property of an object (like a floating balloon or drifting cloud) to make it gently move up and down in a looping, natural manner. This expression ensures the wiggle effect loops seamlessly every 3 seconds, preventing abrupt jumps.

See expression
Motion

Rolling Ball Expression

Automatically rolling a ball that has position keyframes.

See expression
Conditional

Change Value Based On Position

Changing the opacity of a layer if it crosses a certaing position.

See expression
Randomness

Random Position Expression

Randomizing the position of a layer within a 200-pixel range in both X and Y directions.

See expression
Interpolation

Point To A Layer

Aligning a layer to always face a target layer.

See expression
Transformation

Layer Linking Expression

Linking a child layer’s position to its parent with a slight offset to create a trailing effect.

See expression
Interpolation

EaseIn Expression

Gradually increasing a layer’s scale from 50% to 150% over 2 seconds.

See expression
Transformation

Center Anchor Point Expression

Aligns other elements (like icons or graphics) to the exact center of a dynamically sized text box, keeping the layout balanced.

See expression
Motion

Exponential Counter Up Expression

You want to animate a text layer that shows a price or number increasing exponentially, simulating the effect of fast-growing numbers.

See expression
Interpolation

Color Fade Expression

Fading a color from white to black over 5 seconds.

See expression
Interpolation

Time-Remap Control Expression

Slowing down a video clip by half its speed using time remapping.

See expression
Transformation

Dynamic Text Box

Automatically resizes a background box to fit around changing text, ensuring consistent padding for labels, buttons, or captions.

See expression
Interpolation

Value Relative to Time Expression

Gradually changing the scale of an object from 0 to 100% over 5 seconds.

See expression
Conditional

Strobe Light Expression

Making a text layer's opacity blink between 100% and 0% every second.

See expression
Motion

Oscillate Expression

Creating a simple sine wave motion for a bouncing object or pendulum effect.

See expression
Motion

Loop Path

Use this to have an object (like a car or airplane) continuously follow a looping path, such as driving around a track or flying in a circular route, without needing to manually repeat keyframes.

See expression
Interpolation

Distance-Based Scale Expression

Control the opacity of a layer based on its distance from the point [500, 500]

See expression
Motion

Overshoot Expression

Adding an overshoot effect to the scale property, causing it to bounce back slightly after reaching its final value.

See expression
Randomness

Random Color Expression

Randomly generating a color within the RGB range for a flashing light effect.

See expression
Transformation

Parent Rotation Expression

Adding 45 degrees to the parent layer’s rotation to ensure the child rotates at an offset angle.

See expression
Motion

Sine Wave Motion Expression

Animating the opacity of an object to pulse over time using a sine wave.

See expression
Transformation

Delay Expression

Delaying the rotation of a gear object so it follows the rotation of a larger parent gear.

See expression
Motion

PosterizeTime Expression

Forcing a layer to update at 12 frames per second to create a stop-motion effect.

See expression
Transformation

ToComp Expression

Use when you want the 2D element to track the position of the 3D layer but stay flat and readable without 3D distortions.

See expression
Randomness

SeedRandom Expression

Ensuring random values for each layer stay consistent over time based on their index.

See expression
Transformation

ConvertToWorld Expression

Aligning a spotlight’s position to the world space anchor point of another 3D object.

See expression
Interpolation

Smooth Expression

Smoothing out the jittery motion of a handheld camera by averaging out its position over time.

See expression
Transformation

LookAt Expression

You want a layer (such as a 3D object or camera) to always face another moving object (the target layer)

See expression
Conditional

Clamp Expression

Ensuring that a layer's scale never goes below 50% or above 150%, no matter what animations or adjustments you apply.

See expression
Interpolation

Number Counter With Separators

Neatly formats large financial figures (e.g., "1.500.000") from a slider for on-screen display.

See expression
Transformation

Index Expression

Placing each layer 50 pixels apart for a grid layout.

See expression
Motion

LoopOut PingPong Expression

Animating the position of an object in a cosine wave pattern, creating a back-and-forth motion.

See expression
Motion

Bounce Expression

A ball bounces to a stop after falling, using this expression to animate its bounce motion.

See expression
Randomness

Random Expression

Setting the opacity of multiple objects to random values between 0 and 100.

See expression
Interpolation

Ease Expression

Smoothly increasing opacity from 0 to 100 over 1 second for a fade effect.

See expression
Transformation

ValueAtTime Expression

Delaying the position animation of a layer so it follows another layer with a slight lag.

See expression
Motion

LoopOut Cycle Expression

Looping the position of a bouncing ball to repeat its motion indefinitely without adding more keyframes.

See expression
Motion

Wiggle Expression

Creating a subtle shake in a text layer to simulate a hand-held camera effect.

See expression
Motion

Time Expression

Rotating an object at a steady rate over time by applying it to the Rotation property.

See expression