In this exercise we're going to add more interest and intensity to our type by animating a flickering glow without using any keyframes.
To start let's look at how this graphic is built.
Understanding the layered type setup
Layer 1 is red type.
If I turn that visibility off, you can see it's got a black drop shadow.
Under there it has a white outline.
Under that I have a burst and under there is our background.
Now I will turn the visibility of all these layers back on and I want to change the white to a glow.
Creating a glow effect with Fast Box Blur
So, let's select Layer 3 the POW!
white layer and then go up under the Effect menu, go to Blur & Sharpen and choose Fast Box Blur.
Change the Blur Radius setting to a value of 7.0 and you can see now we've got a nice blurry glow.
To create animation
Animating effects without keyframes using expressions
instead of adding keyframes we’ll add an expression.
On Windows, hold down Alt, on Mac hold down Option and click on the stopwatch next to the Blur Radius to automatically add the expression.
Notice now when we go to the Timeline here under Blur Radius it says Expression Blur Radius.
On the right I have a text editing area and rather than clicking inside of there I'm just automatically going to start typing and I'm going to add a wiggle expression.
So, I'll start by typing the word wiggle W-I-G-G-L-E and then we'll choose a left paren and I want it to wiggle 20 times a second, so I'll type 20 and then I'll press , and I only want it to wiggle the value up or down about 5 points.
So, I'll say 5 and then let's choose the right paren here and click anywhere outside of this white line to set the wiggle expression.
Now if we press the Spacebar, you'll notice the glow is actually wiggling and if I press the Spacebar again it'll stop playback.
Now, that's one way to create an expression, write it from scratch.
Another way is to actually have one parameter of any layer or effect
Linking properties with expressions using the pick-whip
get driven by another one.
So, what we'll do is adjust the rotation of the drop shadow based on the intensity of the Blur Radius.
So, I'll select Layer 2 and press R to open its Rotation.
Now if you notice next to Rotation if we go over the Parent & Link column indented here is a pick-whip and that's for the rotation.
I want this Rotation value to match the Blur Radius.
So, I'll click on the pick-whip, hold my mouse down and drag and point it to the Blur Radius, and when I let go, this is automatically going to create an expression and I know an expression has been applied because I can see the numbers turn red.
Also, to the left of the keyframe button here there is an arrow.
So, if we open the arrow here you can see there's an Expression to the Rotation and it's saying in this Comp.layer ("POW!
white"), we're going to look at the Effect for the Fast Box Blur based on the Blur Radius.
So, notice they match perfectly.
If I press the Spacebar, it's going to go ahead and rotate at the same intensity as the glow.
Now, this looks a little rough.
I don't want it to rotate nearly as much but I still want it to rotate in sync with the wiggle in the glow.
Refining expression-driven animation intensity
So, I'll press the Spacebar to stop playback and I'll click once anywhere in the type here for the Expression for the Rotation.
That will select all the letters on the type, and I'll click to the right.
Then I'll use the / button and type 10 and what I'm saying is I want this expression to be divided by 10.
So, it's only going to be one-tenth as strong as the Blur Radius.
So, when I click outside of there notice this is set to 8.1 and here now it's 0.8.
So, if I press the Spacebar again, you can see now I have my rotation flickering at the same velocity just not nearly as much.
So, as you can see Expressions allow you to create dynamic animation quickly without the use of keyframes.
This sample file is an Adobe Stock asset you can use to practice what you learn in this tutorial. If you want to use the sample file beyond this tutorial, you can purchase a license on Adobe Stock. Check out the ReadMe file in the folder for the terms that apply to your use of this sample file.
What you learned: Multiple methods for applying expressions
Why expressions?
Expressions are a fast way to create animations that would otherwise seem much harder to create using keyframes.
Apply an expression
Option-click (MacOS) or Alt-click (Windows) the stopwatch of any parameter to apply an expression to that parameter.
Start with simple expressions
The wiggle expression is a great one to start with. To create it from scratch, apply an expression and select it in the Timeline. Then, click in the Timeline to open a text box and type wiggle followed by two values in parentheses, like (10,5). Click outside of the text box to apply the wiggle expression.
The first number in the wiggle expression is the number of times the parameter will wiggle per second. The second number is how much that wiggle will change numerically. For our example above, the layer would move 10 times a second, and only adjust 5 digits in any direction for the parameter.
Use a parameter pick whip to link parameters
Drag the parameter pick whip in the Parent & Link column from one parameter to another to tie parameters together, so one parameter controls another. For example, you could have the rotation of one layer determine the position of another layer.
Adjust expressions with math
Add math operations at the end of an expression if you want to slow down the expression (/) or speed up the expression (*). You can also add (+) and subtract (-) specific numbers.
Tip:
Expressions become more natural to use the more you apply them. Don’t be afraid to use the pick whip to link different parameters together and use math to play around and gain a deeper understanding.
You can control how Adobe websites use cookies and similar technologies by making choices below. But note that if you disable cookies and similar technologies entirely, Adobe websites may not function properly.
Cookies are small text files stored by your web browser when you use websites. There are also other technologies that can be used for similar purposes like HTML5 Local Storage and local shared objects, web beacons, and embedded scripts. These technologies help us do things like remembering you and your preferences when you return to our sites, measure how you use the website, conduct market research, and gather information about the ads you see and interact with.
You can make choices in the menu below about what cookies and other technologies you want us to use on Adobe sites when you visit them from this browser. You can always change those choices later by clicking on the Cookie Preferences link at the bottom of the page.
If enabled:
We can improve your experience by tailoring the site and the content to things we think might be of interest
We can better keep track of your preferences — like what language you prefer to use
We will better understand your likely interests so we can provide you more relevant Adobe ads and content on non-Adobe websites and in non-Adobe apps
It will help us improve the performance of our website and those of our partners who use the Adobe Experience Cloud
If disabled:
We won’t be able to remember you from session to session so the experience may not be tailored to your interests
You’ll still have access to the content of the site but certain features that depend on cookies may not function
You’ll still see ads, they just may not be as relevant to you
General information
You can control how Adobe websites use cookies and similar technologies by making choices below. But note that if you disable cookies and similar technologies entirely, Adobe websites may not function properly.
Cookies are small text files stored by your web browser when you use websites. There are also other technologies that can be used for similar purposes like HTML5 Local Storage, web beacons, and embedded scripts. These technologies help us do things like remembering you and your preferences when you return to our sites, measure how you use the website, conduct market research, and gather information about the ads you see and interact with.
You can make choices in the menu below about what cookies and other technologies you want us to use on Adobe sites when you visit them from this browser. You can always change those choices later by clicking on the Cookie Preferences link at the bottom of the page.
If enabled:
We can improve your experience by tailoring the site and the content to things we think might be of interest
We can better keep track of your preferences — like what language you prefer to use
We will better understand your likely interests so we can provide you more relevant Adobe ads and content on non-Adobe websites and in non-Adobe apps
It will help us improve the performance of our website and those of our partners who use the Adobe Experience Cloud
If disabled:
We won’t be able to remember you from session to session so the experience may not be tailored to your interests
We’ll still count your use of our site and services
You’ll still have access to the content of the site but certain features that depend on cookies may not function
You’ll still see ads, they just may not be as relevant to you
Operate the site and core servicesOperate site and measure engagement
Always active
These cookies are required, and they are used to enable the site and related services core functionality. Without them the site could not operate, so they cannot be disabled.
These cookies enable the site and related services’ core functionality and collect statistics about user engagement, such as counting active use to help us understand trends. These cookies cannot be disabled.
Measure performance
These cookies are used to analyze site usage to measure and improve performance. Without them Adobe cannot know what content is most valued and how often unique visitors return to the site, making it hard to improve information we offer to you.
These cookies are used to analyze site usage to measure and improve performance. Without them Adobe cannot know what content is most valued, making it hard to improve information we offer to you.
Extend functionality
These cookies are used to enhance the functionality of Adobe sites such as remembering your settings and preferences to deliver a personalized experience; for example, your username, your repeated visits, preferred language, your country, or any other saved preference.
Personalize advertising
These cookies are used to enable Adobe and our partners to serve ads more relevant to your interests. Without them you will still see ads, but they might not be as relevant to you.
Personalize advertising
These cookies are used to enable Adobe and our partners to serve ads more relevant to your interests. Without them you will still see ads, but they might not be as relevant to you.