Animating a bobbing head or head-bob in After Effects

Posted on Sunday, 19 August 2018

Animating a bobbing head or head-bob in After Effects – Simple Expression

head-bob bobbing head
So you are looking to animate a head or object as “bobbing” up and down?
I.e. you want an object to be moving up and down repeatedly, to make a bobbing head on an animated character.

How to create a simple bobbing up and down, this expression for a layers position can be used for this effects, simply for the y-position and still allows for keyframing the position as well. The same expression can be used for a camera position.

Animating a “head-bob” Expression:

f = 1 // the frequency in times per second for the head-bob
a = 20 // head-bob amount in pixels
y = Math.sin(time*Math.PI*f)*a;

To adjust the speed and distance of the head-bob, simply modify the values for frequency and amount in pixels.

Are you looking for a reliable 2D animation partner? - Sundstedt Animation


Interested in working together? We do not work with just anyone. Please fill out this form and we’ll follow up. Or call Anders Sundstedt: +44 7531 800 711.

Your name*

Your email*

Your website

How can we help? Details please!*

  By using this form you agree with the storage and handling of your data by this website. Privacy Policy. *

* Indicates Required

Back To Top

Don`t copy text!