After Effects – Wiggle X or Y Axis Only – 5 Easy Expressions
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…
Tools & Consultation from Sundstedt Animation
If you want professional guidance on your animation projects or handy tools to keep your Windows system running smoothly, these offerings are perfect for you:
Creative Kickstart Consultation
30-45 minute 1-on-1 session with Anders to clarify your animation or video ideas and plan next steps. £150.
RenderReady – Maintenance Script v1.0
Keep your Windows system lean, fast, and responsive with this ready-to-run maintenance script. £15.

Partner with Sundstedt Animation! We produce 2D animation, whiteboard videos, motion graphics and 2.5D animation for agencies. Anders Sundstedt works remotely with studios and agencies, including 2d animation, graphics, background artwork, illustration, storyboarding & animated loops. As an artist, Anders Sundstedt makes all content from scratch. No stock or templates. If you are a musician/songwriter/producer and looking for a video director, please check out my music video work.
This guide was written by award-winning Anders Sundstedt, Director, Animator & Illustrator of Sundstedt Animation (available for animated video project work, simply get in touch to discuss your project).
Animated Video Testimonials
“Anders is an amazing artist and animator! I had the pleasure of collaborating with him on a song I produced for Sofi K called “Fall Back Down.” The level of hard work and detail that he put into our music video was unbelievable. He is communicative and gives you detailed descriptions and options of ways to make something work. We sent him examples of some of the imagery, tone, and feel that we were looking for in our animation and he was able to masterfully incorporate these things in. We were blown away by his talent and the way our video came out. I think Anders is doing great things in the world of animation and will continue to impress the people he collaborates with. I’m hoping to work with him again in the future.”
“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.”
About X axis and Y axis
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 (only X!):
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);
[w[0],y];
In the example expression above, 2 is the amount on wiggles per second, 100 is the maximum wiggle value in the X axis.
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:
org=value;
temp=wiggle (5,50);
[temp[0],org[1]];
Shorthand (short version):
[wiggle(5,50)[0],position[1]]
Wiggle only in Y (vertical)
This is the expression for position to wiggle Y only:
org=value;
temp=wiggle (5,50);
[org[0],temp[1]];
Shorthand (short version):
[position[0],wiggle(5,50)[1]]
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.
Partner with Us! We produce animated videos for both individual clients and other studios.
We supply animated video and illustration, animated loops, whiteboard video and video skin retouching to both local, national and international design agencies & animated production studios. Please do get in touch if you have a video project for us you want to discuss.
Here are some more more articles and pages:
Start or stop wiggle at specific time
After Effects Eye Blink Expression
Animating a head-bob in After Effects
How to lock the position of a mask in After Effects
Moving anchor point to center of content in After Effects
Exporting Photoshop Animation To After Effects & Looping Forever
Replace and Reconnect a PSD file in After Effects
Anders Sundstedt Portfolio
Services you might be looking for:
Paper cutout animation service
Lyric video production service
Animated music video production studio
Animated illustration service
Animated explainer video service
Video strategy blueprint


