Expressions are the secret weapon of any motion graphics designer. You can automate repetitive tasks with expressions, create flexible rigs, and stretch your capabilities far past whatever is possible with keyframes alone. If you've been looking forward to adding this incredible skill to your Motion Graphics animation toolkit, your quest is finally over.
Today, I will show you when and how to add Expressions in After Effects. Besides, we shall also explore the commonly used Expressions in After Effects.
New to Expressions? No worries! Keep reading, and you'll be all set in no time.
What is an Expression?
After Effects (AE) is an exceptional tool for creating UI animations, character animations, HUD animation; however, we’re constantly looking for ways to speed up our workflow. After Effects comes with support for expressions, which form relationships between layer properties or keyframes. So, if you want to create and link intricate animations, try using expressions to avoid making tens or hundreds of keyframes by hand.
It is basically a small code that you can add into animated properties in your After Effects projects that further helps you assess a single value for a single layer property at a particular point in time.
Expressions are an intelligent addition to any workflow or project. These code snippets can reduce the number of keyframes and layers on the timeline, transform values for animation flexibility, and consolidate multiple properties to a single control. They provide artists the ability to modify values with math operations and design dynamic animation controls; however, you don’t really need to be a programmer to use them.
Exciting, right?
Expressions Language
Unlike a script, which instructs the application to perform a task, an expression instructs a property to do something. For instance, you have a ball rolling across the screen from left to right, but you want that ball to wiggle as well. In that case, instead of animating the position property with keyframes, you can simply apply a wiggle expression to it.
The expressions language is derived from the standard JavaScript language, although you do not need to be a JavaScript specialist to get started with expressions. You can create amazing expressions by simply using the pick whip or copying basic examples and adjusting them as per your needs.
How to add Expressions
It’s pretty straightforward to add an expression.
Watch this video clip to learn how to add an expression.
Common Expressions in After Effects
Expressions are easy, to begin with, automate tasks, and offer immediate and high returns with minimal effort.
Every Expression you know is a time-saving, work-streamlining tool. The more Expressions in your tool kit, the better suited you are for After Effects projects, particularly those with tight deadlines.
So, have a look at some of my favorite expressions!
Wiggle
The wiggle expression is perhaps one of the most popular After Effects expressions.
For those who are not well aware of the wiggle expression, it’s a fabulous way to create random and infinite movement. Wiggle is written using one line of code which results in clean motion and requires no keyframes.
However, it can additionally be applied using the Wiggler panel in the After Effects interface, although this process creates many keyframes.
Now, let's see how to use wiggle expression in after effects.
wiggle(2, 20)
The numbers within the parentheses specify the wiggle. The first number is the number of wiggles per second, i.e., frequency, and the second number is the amount of wiggle, i.e., amplitude. So, a Position property having an expression of wiggle(2,20) will wiggle twice per second by up to 20 pixels.
Time
Time is undoubtedly the backbone of After Effects, and a great deal of potential gets unlatched when you mix time with expressions. An incredible application of time-based animation is Rotation or Fractal Noise. The time expression will yield a value related to the position of your playhead in seconds.
For most motion graphic elements, you will probably want to multiply the time expression so that it returns a greater value. In that case, you have to tell After Effects to do some elementary calculations.
Now let's see how to use time expression in after effects.
Time*90
Adding the Time expression to any layer's rotation will make it rotate from its axis point by one degree every second. You can add basic mathematical functions, using * for multiply and / for divide, to speed that up.
Loop
Using multiple keyframes to create repetitive animation can be time-consuming. However, you can use the loop expression to automate this and create intricate looping animations.
There are primarily two types of looping – loopIn and loopOut.
The loopOut expression is widely used, and an example is given below.
Text Values
You can link the value of text to that of the current time. Simply click on the stopwatch and add in the time expression.
Math.round(effect(“Slider Control”)(“Slider”));
By default, the numbers will contain numbers beyond the decimal point, so I recommend using the Math.round() function in order to round up to the closest whole number.
How to edit Expression Manually

Wrapping Up
Creating fun animations in After Effects is often relatively simple; however, using expressions will make things even easier. Hopefully, this article will help you understand how to add expressions in After Effects and improve your animation skills.
So, what are you waiting for?
Set the power of Expressions to work in some amazing animations with controls and effectiveness unlikely to achieve using traditional keyframing techniques.
And remember, practice will make your skills perfect, so play around and find out what turns out best for you. Excited to use expressions to create some incredible animations? Get started now!
Feel free to reach out to us if you have any queries. And if you are looking for a motion graphics artist to create some cool animation videos for you, contact us now and get a personalized quotation!