View all expressions
Motion

Swinging Pendulum Animation

Simulates the motion of a swinging pendulum with decaying amplitude over time, mimicking realistic physical movement.

Contributed by:


frequency = 1;
amplitude = 45;
decay = 0.1;
amplitude * Math.sin(time * frequency * Math.PI * 2) * Math.exp(-decay * time);

Swinging Pendulum Animation

Practical use case

Ideal for creating physics-based effects or adding organic motion to objects like hanging signs, swinging decorations, or other elements that need natural oscillation.

Check out similar expressions

Data-driven video workflows for After Effects are easier with Plainly.

a mesh of elegant lines transparent image