Animating a bobbing head or head-bob in After Effects

Posted on Sunday, 19 August 2018
Top 21 Reasons for using Motion Graphics in Animation
2D Animated Music Video Makers

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”?
I.e. you want an object to be moving up and down, repeatedly…

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:

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;
value-[0,y,0]

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

Top 21 Reasons for using Motion Graphics in Animation
2D Animated Music Video Makers