After Effects wiggle expression: 4 ways to shake anything

HomeAfter Effects wiggle expression: 4 ways to shake anything

After Effects wiggle expression cover image

After Effects wiggle expression: 4 ways to shake anything

Shaky text, a handheld camera or a gently floating logo needs no keyframes. In After Effects, a short line called the wiggle expression does the job. It moves a value around its own starting point at random. In this post, we explain how the wiggle expression works and how to handle common cases. We also show the ready wiggles in Motion Suite.

In short

  • wiggle takes two numbers: frequency sets how often it moves each second, and amplitude sets how far.
  • No keyframes needed. The value shakes around the property’s own value.
  • A one-axis wiggle, an undistorted scale wiggle and a looping wiggle each need a few extra lines.
  • The Library in Motion Suite has three ready wiggles: standard, one-axis and looping.

2

settings: frequency and amplitude

3

ready wiggles (Motion Suite)

0

keyframes needed

How does the wiggle expression work?

According to Adobe’s example, wiggle(2, 30) on Position moves a layer twice a second. Each move goes up to 30 pixels in any direction. So the first number is the frequency and the second is the amplitude. The unit of the amplitude depends on the property:

PropertyAmplitude unitExample use
PositionPixelsShaky text, camera shake
RotationDegreesA swinging sign
ScalePercentA breathing button
OpacityPercentA flickering light
How frequency and amplitude change a wiggle
Example: two seconds of the same layer’s motion. Higher frequency makes it busier; higher amplitude makes it wider.

How to write a wiggle expression in 4 steps

  1. Open the property. Select the layer and press P to open Position.
  2. Open the expression field. Alt-click (Option-click on Mac) the stopwatch.
  3. Type the line. Type the line below in the field.
  4. Preview. Click an empty area and press Space to play.
wiggle(2, 30)

For a decimal number, use a point, for example wiggle(2.5, 30). That is because a comma separates the two numbers in the expression.

3 common wiggle cases

Wiggle on one axis only

Wiggle moves both axes of Position. If you want horizontal shake only, keep the vertical value fixed:

w = wiggle(2, 30);
[w[0], value[1]]

For vertical shake only, write [value[0], w[1]] instead.

Wiggle scale without distortion

A plain wiggle on Scale moves width and height separately. As a result, the layer gets squashed. Tie both axes to the same value:

w = wiggle(2, 10);
[w[0], w[0]]

Start and stop the wiggle

Link the amplitude to a Slider Control. Then keyframe the slider. For example, the shake stops when the value is 0:

wiggle(4, effect("Slider Control")("Slider"))

Tip

For camera shake, apply wiggle to a Null that the camera is parented to, not to the camera itself. That way, you can still animate the camera’s main move separately.

Ready wiggles with Motion Suite

Motion Suite is a plugin we built for After Effects. Its Library has three ready wiggles. Here is how you set one up without writing code:

  1. Select the property. Select the property to shake in the Timeline, for example Position.
  2. Find the wiggle. Open the Motion category in the Library, or type “wiggle” in the search.
  3. Pick a type. Choose the standard, one-axis or looping wiggle.
  4. Apply. The settings are added to the layer as control effects. You change frequency and amplitude in Effect Controls.
Ready wiggleDefault settingsWhen to use
WiggleFrequency 2, amplitude 30General shake on Position, Scale, Rotation or Opacity
Wiggle (Axis)Frequency 2, amplitude X 40, amplitude Y 0Horizontal-only or vertical-only shake
Looping WiggleFrequency 1, amplitude 30, loop duration 3 sVideos that must loop seamlessly

The looping wiggle is especially useful for Reels and GIFs that repeat. A standard wiggle jumps when the video starts over. The looping one, however, meets its first frame on its last frame.

If you select more than one layer, the Library also shows a delay option. Then each layer starts a few frames after the one before. Also, the “Remove Expression” command clears both the expression and its control effects.

How do I get Motion Suite?

You can download Motion Suite from its app page after signing in with Google. It is free until January 5, 2027. It runs on After Effects 2026 with Windows 10/11. The panel works in English and Turkish.

Besides the Library, there are three more tools. Ease edits curves, Glow builds light and Animation adds ready in and out animations. For example, we cover the ready counter in our counter animation post.

Frequently asked questions

Why does my wiggle show an error?

Most of the time, the cause is a comma. Use a point for decimals. Also, code copied from the web may contain curly quotes. In that case, retype the quotes on your keyboard.

Can I turn a wiggle into keyframes?

Yes. Select the property and use Animation › Keyframe Assistant › Convert Expression to Keyframes. It adds a keyframe on every frame.

Do two layers wiggle the same way?

No. After Effects gives each layer its own random motion. So layers with the same code still shake independently.

Will the wiggle break if I uninstall the plugin?

No. Motion Suite builds After Effects’ own expressions and control effects. So your project keeps working without the plugin.

Build motion without writing code

Motion Suite is free until January 5, 2027. Want us to produce animated videos for you? See our Video Production page.

Comments are closed