Loop Wiggle expression

With the Loop Wiggle expression, you can create a seamless loop for a wiggle expression in seconds. It’s helpful for adding controlled, repeating wiggling movements to your animations.
frequency = 2; // wiggles per second
amplitude = 40; // amount of pixels to wiggle
secondsToLoop = 2; // time to loop in seconds
// ——–
t = time % secondsToLoop;
wiggle1 = wiggle(frequency, amplitude, 1, 0.5, t);
wiggle2 = wiggle(frequency, amplitude, 1, 0.5, t – secondsToLoop);
x = linear(t, 0, secondsToLoop, wiggle1, wiggle2);
x;Pro tip: Go to AEJuice Pack Manager – Expressions Pack to apply this expression in 1 click. Here are direct links for the latest plugin version:
Windows / macOS

Click here to receive more tips by email.

Get 10% off when you subscribe to our newsletter

By subscribing you agree to your email being stored and used to receive the emails in accordance to our Privacy Policy
descount