After Effects expressions are snippets of JavaScript code that allow you to create dynamic animations and automate tasks within Adobe After Effects. They can be applied to properties like position, scale, rotation, and more, enabling you to achieve effects that would otherwise require extensive keyframing.
Here are some popular expressions:
- Wiggle: Adds random motion to a property. Example:
wiggle(2,30)
makes the layer move randomly twice per second within a range of 30 pixels. - Loop: Repeats animations. Example:
loopOut("cycle")
loops the animation after the last keyframe. - Bounce: Creates a bouncing effect. Example:
value + Math.sin(time * frequency) * amplitude
. - Delay: Offsets animations between layers. Example:
thisComp.layer(index - 1).position.valueAtTime(time - delay)
.