After Effects – Wiggle X or Y Axis Only – 5 Easy Expressions

Posted on Wednesday, 13 May 2015
Need an Animated Whiteboard Video?
Glasgow City of Science Blog features Sundstedt Animation Video

Wiggle X or Y axis only in After Effects CC

This guide has everything you need to know about simple scripts to wiggle in X or Y direction only in Adobe After Effects. Keep reading…

“It is without a doubt that I can say Anders is a unique animator because his goal is not to finish a project and move on, it’s to make something he enjoys to make and has pride in and the final product shows us his love of animation.”
Jeff Rolfzen
The Lark and The Loon

What is X axis and Y axis? Let’s look at the X and Y axis example image below. The red axis below is the X axis. The green axis below is the Y axis. Another name is an X and Y graph:


Let’s start with how to wiggle only in the X axis first:

The Easy Expression to add to Position, for wiggle in X axis only (the red axis above) is:

x = transform.position[0];
y = transform.position[1];
w = wiggle(2,100);

In the example expression above, 2 is the amount on wiggles per second, 100 is the maximum wiggle value.

Here are some alternative, tried and tested wiggle X or Y axis only (see green and red axis above) expressions you can use:

wiggle only in X (horizontal)

This is the expression for position to wiggle X only:

temp=wiggle (5,50);

Shorthand (short version):


Wiggle only in Y (vertical)

This is the expression for position to wiggle Y only:

temp=wiggle (5,50);

Shorthand (short version):


Now you know how to create a wiggle expression in After Effects for only X or Y direction! Hopefully you found this page about how to wiggle in x or y axis only helpful. Please do get in touch below if you have a video project for us you want to discuss.

Read more: ‘Start or stop wiggle at specific time’ »

We supply animated video and illustration to both local, national and international design agencies & animated production studios.


Partner with Us! We produce 2D animation & whiteboard animation for agencies & studios.


Please fill out this quick animated video form and we’ll follow up.
Or call Anders Sundstedt: +44 (0) 7531 800 711.

Your name*

Your website

Your email*

How can we help? Details please!*

What's your budget?*

 By using this form you agree with the storage and handling of your data by this website. Privacy Policy. *

* Indicates Required

Back To Top

Need an Animated Whiteboard Video?
Glasgow City of Science Blog features Sundstedt Animation Video

Anders is the Founder and Owner at Sundstedt Animation, where he creates handcrafted animated explainer videos, music videos and whiteboard videos. He lives in Glasgow, Scotland and enjoys film and photography. You can follow him on LinkedIn, Google+ and Twitter.

It's only fair to share...
Share on Facebook
Share on Google+
Tweet about this on Twitter
Share on LinkedIn
Email this to someone