SUPER EASY ANIMATIONS – 5 After Effects Expressions

//SUPER EASY ANIMATIONS – 5 After Effects Expressions

Learn to create professional motion graphic animation in seconds using expressions in Adobe After Effects. These are the top 5 yoiu must know.

Motion graphics are always fun to watch, but creating them can often take hours of work. Luckily there’s this thing called ‘expressions’, which are basically blocks of code. These codes tell your layers how to behave and act. So with some creative codes, we can make stunning animations in seconds!

If you’re new to after effects, we suggest to first watch our introduction and then come back for these expressions.

The expressions below are all covered in the tutorial above and you can simply copy/paste them to your project!


First create an animation (ie. scale 100 to 120% or position from left to right). Next apply bellow’s expression to the property you’ve key-framed to make the animation bounce.

n = 0;
if (numKeys > 0){
n = nearestKey(time).index;
if (key(n).time > time){
if (n == 0){
t = 0;
t = time - key(n).time;
if (n > 0 && t < 1){
v = velocityAtTime(key(n).time - thisComp.frameDuration/10);
amp = .06;
freq = 3;
decay = 5.0;
value + v*amp*Math.sin(freq*t*2*Math.PI)/Math.exp(decay*t);


Can be applied to any property, but works great on the position to create a natural camera movement.

Squash and Stretch

Apply it to the scale attribute of any object. Works best on icons or bullet points.
maxDev = 13; // max deviation in pixels
spd = 30; //speed of oscillation
decay = 1.0; //how fast it slows down
t = time - inPoint;
x = scale[0] + maxDev*Math.sin(spd*t)/Math.exp(decay*t);
y = scale[0]*scale[1]/x;

Motion Tail

First animate the position of an object. Then apply bellow’s expression to the position:
delay = 5; //number of frames to delay
d = delay*thisComp.frameDuration*(index - 1);
thisComp.layer(1).position.valueAtTime(time - d)

And this code to the opacity:
opacityFactor = .75;
Math.pow(opacityFactor,index - 1)*100

Now simply duplicate that entire layer (CTRL + D / CMD +D) a couple of times.

Timer Up or Down

Create a text layer and apply the expression to the source text attribute.

//Define time values
var hour = Math.floor((time/60)/60);
var min = Math.floor(time/60);
var sec = Math.floor(time);
var mili = Math.floor(time*60);
// Cleaning up the values
if (mili > 59){ mili = mili - sec*60; }
if (mili < 10){ mili = "0" + mili; } if (sec > 59){ sec = sec - min*60; }
if (sec < 10){ sec = "0" + sec; } if (min >= 59){ min = min - hour*60; }
if (min < 10){ min = "0" + min; }
// no hour cleanup
if (hour < 10){ hour = "0" + hour; }
hour + ' : ' + min + ' : ' + sec + ' : ' + mili;


This video was supported by Videoblocks, an easy to use site full of stock footage, vector images, stock photos, music, sound effects and more.

2018-04-17T14:51:38+00:00August 1st, 2017|After Effects Tutorials|10 Comments

About the Author:

Graduated in 2012 from filmschool, I immediately started as freelance cameraman for commercial work. Quickly I was noticed by educational platform Tuts+, where I made over 25 online courses about film making and video editing. Here is where the passion started for sharing my experience on Youtube since 2014.


  1. rahulMay 24, 2018 at 1:25 pm - Reply

    I have seen your lots of tutorials. I am after effects artist want to know all expression but don’t know where will I get it. and I do live action short films too.
    what should I do for more clear sound without noise?

  2. rahulMay 24, 2018 at 1:24 pm - Reply

    I have seen your lots of tutorials. You have amazing work. I am after effects artist want to know all expression but don’t know where will I get it. and I do live action short films too.
    what should I do for more clear sound without noise?

  3. PeterMay 17, 2018 at 9:20 pm - Reply

    I came across this webpage. It has a list filled with expressions and people can add more themselves.

    Maybe this is usefull for some of you.

  4. AreebMay 15, 2018 at 8:45 am - Reply

    i loved your expressions thanks for sharing us

  5. OttNovember 28, 2017 at 7:57 am - Reply

    guud stuff *thumbsupp

  6. Rohit tandelAugust 17, 2017 at 10:24 pm - Reply

    Hi jordy,

    I m ae student I want learn all expression in Ae.please send me tutorials videos and also guide us with ur new techniques of Ae videos.

    Thank you & Regards
    Rohit tandel

  7. SébastienAugust 7, 2017 at 8:19 am - Reply

    Thank’s Jordy, that’s amazing

  8. Asad AliAugust 2, 2017 at 4:38 am - Reply

    Thanks sir for helping us.

  9. Bret HamptonAugust 2, 2017 at 1:46 am - Reply

    Enjoyed your demo but having trouble getting countdown and couple others to work. The countdown expression in your demo is different than the script you listed. Can’t get either to work. The listed on just shows 00 and no countdown.

    • Jordy VandeputAugust 2, 2017 at 10:42 am - Reply

      Oops, was a little typo. Should work now 🙂

Leave A Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

We publish multiple tutorials every week. Subscribe to the weekly newsletter to receive them right in your mailbox.
Your information is stored safely on Mailchimp. You can unsubscribe at any time!
I agree to the Privacy Policy. You can unsubscribe at any time.
Thank you for joining the mailing list!
Your Information will never be shared with any third party. You can unsubscribe at any time.
Please check your mailbox to confirm your email address.