[2024] Using Time Expressions After Effects

A Timer Expression is a powerful tool that allows you to create complex animations and effects based on time. This expression is written in JavaScript and can be applied to any property in After Effects to manipulate its value over time.

November 26, 2023
[2024] Using Time Expressions After Effects
"Video editors relying on templates lack genuine skill and creativity."

What do you think? Submit your opinion to see what others have to say!

"It's Like Video Editing On Steroids!"
- Sebastian Navarro, FreeVisuals Editor
Endorsed by Adobe, Motion Array is the ULTIMATE tool for creating high-quality videos! Browse 15M+ assets for Premiere Pro, After Effects, FCPX & DaVinci!

Adobe After Effects Time Expression

Timer Expression for After Effects

Opacity Fade Expression

t = time;
value = Math.sin(t) * 100;

What The Timer Expression Does

The Timer Expression in After Effects is primarily used to create countdown timers or animations that change based on time. By leveraging the expression engine in After Effects, users can automate tasks and create animations that react to the passage of time.

How To Use It

To use a Timer Expression, you first need to open After Effects and import your footage or create a new composition. Once you have your composition set up, you can select the layer you want to apply the expression to and press the “E” key to reveal all of the properties of that layer.

Next, you’ll want to find the property you want to animate with the Timer Expression. This could be the position, scale, opacity, or any other property of the layer. Once you’ve found the property, alt-click (or option-click on a Mac) on the stopwatch icon next to the property to open the expressions editor.

In the expressions editor, you can type in your Timer Expression. The expression will typically start with a variable that represents time, such as “t = time;”. You can then use this variable to create a mathematical equation that will determine the value of the property over time.

For example, if you wanted to create an animation where a layer’s opacity fades in and out over time, you could write a Timer Expression like this:

t = time;
value = Math.sin(t) * 100;


This expression sets the opacity of the layer to the sine of the current time, multiplied by 100. This will create a smooth fading in and out effect.

Once you’ve written your Timer Expression, you can click away from the expressions editor and play back your composition to see the effect in action. If you need to make adjustments, you can go back into the expressions editor and tweak the equation until you get the look you want.