🏞️Secondary Animation

Give your animation more life with ease

-Wiggle [FULL CONTROL]

// Wiggle expression for a shape layer 
ampX = 50; // amplitude for x-axis movement
freqX = 2; // frequency for x-axis movement
ampY = 50; // amplitude for y-axis movement
freqY = 4; // frequency for y-axis movement
seed = 0; // seed value for the wiggle

wiggleX = ampX * Math.sin(freqX * time + seed); // wiggle amount for x-axis
wiggleY = ampY * Math.sin(freqY * time + seed); // wiggle amount for y-axis

[value[0] + wiggleX, value[1] + wiggleY] 
To use the expression with controls, create four slider controls 
in the Effects panel named "Amplitude X", "Frequency X", "Amplitude Y", 
and "Frequency Y", and link them respectively to the ampX, freqX, ampY, 
and freqY variables in the expression. 
Set the value for the "Seed" variable to a different number for each 
shape layer in your composition to get a 
unique wiggle pattern for each one.

Last updated