Wiggle (2,40) will make a layer shake dramatically, but slow. You can adjust these numbers however you would like. The second number represents the amplitude of the wiggle, which is how far it moves. The first number in this expression represents the frequency of the wiggle-essentially, how fast it appears to shake. You can edit your expression at any time by hitting alt/option on the stopwatch again-or by pressing the down arrow beside “position” and then double-clicking the text in the timeline. Discover the other things you can do with expressions here.
Using a coding language adapted from javascript, you can use all sorts of customizable commands to apply complex motion to layers.
Pressing the alt/option key, click the stopwatch beside “position.” When you see the position text turn red and begin typing in the timeline, you are creating what is called an “expression” in After Effects.I want to apply a wiggling or shaking effect to both of these layers, so I will repeat these steps for both objects. For this example, I have an image of pancakes and then some stars. In your after effects file, select the layer that you want to shake.