Glitch effect in After Effects: 3 ways to break and shift the image

HomeGlitch effect in After Effects: 3 ways to break and shift the image

Glitch effect in After Effects

Glitch effect in After Effects: 3 ways to break and shift the image

A glitch effect is a split second where the image breaks and shifts. For example, colors split apart, strips slide sideways and the picture stutters. That’s why it’s popular in Reels transitions, tech promos and logo intros. In this post, we explain 3 ways to make a glitch effect in After Effects. What’s more, none of them needs a plugin.

Let us make your video

We make Reels, product videos and logo animations with glitch transitions. Using After Effects? Try the flicker and posterize presets in our free Motion Suite extension. If you’d rather leave it to us, get a quote.

In short

  • Color split: Separate and offset the red, green and blue channels with Shift Channels.
  • Block shift: Make a strip map with Fractal Noise, then shift the image with Displacement Map.
  • Random jump: Nudge the layer sideways now and then with one expression.
  • Stutter: Play the motion in steps with Posterize Time.
  • A glitch works best when it’s short. A few frames are often enough.

3

color channels: red, green, blue

12 fps

stutter rate in the example

15%

glitch chance in the expression (example)

How to make a glitch effect: 3 ways

The two parts of a glitch: color split and strip shift
Example: the red and blue channels slide sideways, and strips shift by different amounts. Values are illustrative.

1. Split the color channels

First, duplicate the footage layer twice (Ctrl+D, or Cmd+D on a Mac). Now you have three copies. Then apply Effect › Channel › Shift Channels to each copy.

  • First copy: Set Take Green From and Take Blue From to Full Off. Only red is left.
  • Second copy: Turn red and blue to Full Off. Only green is left.
  • Third copy: Turn red and green to Full Off. Only blue is left.

Next, set the blend mode of the top two copies to Add. As a result, the image looks normal again. Finally, move the red copy a few pixels left and the blue copy a few pixels right. This creates color fringes at the edges.

2. Block shift with Fractal Noise

In this method, you first make a strip map. Then you shift the image based on that map.

  1. Solid: Create a comp-sized solid with Layer › New › Solid.
  2. Fractal Noise: Apply Effect › Noise & Grain › Fractal Noise. Set Noise Type to Block and raise Contrast.
  3. Strips: Under Transform, turn off Uniform Scaling. Raise Scale Width and lower Scale Height. This makes horizontal strips.
  4. Motion: Add the expression `time * 2000` to Evolution. The strips now keep changing.
  5. Precompose: Select the solid and precompose it with Ctrl+Shift+C. Then hide it.
  6. Displacement Map: Apply Effect › Distort › Displacement Map to the footage layer. Pick the precomp as the map layer. Turn on horizontal shift and set vertical shift to 0.

Don’t skip the precompose step. That’s because Displacement Map ignores any effects or masks on the map layer. This is stated on Adobe’s page on distort effects. So if Fractal Noise sits directly on the solid, it won’t see it.

3. A random jump with an expression

In fact, a glitch looks more natural when it happens now and then, not all the time. So Alt-click the stopwatch on the layer’s Position (Option on a Mac). Then paste this code:

fps = 12;      // how many dice rolls per second
chance = 0.15; // glitch chance on each roll
amount = 40;   // max shift in pixels
seedRandom(Math.floor(time * fps), true);
r = random();
x = random(-amount, amount);
r < chance ? value + [x, 0] : value

The layer now “rolls a dice” 12 times a second. In other words, if the roll hits, it jumps sideways for a moment; otherwise it stays put. Lower `chance` to make glitches rarer. You can also use the same idea on Opacity. However, the code is meant for 2D layers. We cover another kind of random shake in our post on wiggle.

Stutter with Posterize Time

To make the glitch feel more digital, play the motion in steps. To do this, apply Effect › Time › Posterize Time to the layer. Then set Frame Rate to, say, 12. Or add `posterizeTime(12);` at the very start of an expression. As a result, the motion updates only 12 times a second.

Ready-made pieces with Motion Suite

The Library in our Motion Suite extension has three ready-made pieces for a glitch:

Wiggle (Axis)

It wiggles only horizontally or only vertically. For example, set Amplitude Y to 0 and the layer shakes only sideways. The defaults are frequency 2 and Amplitude X 40. For a glitch, raise the frequency.

Flicker

It flickers Opacity at random, like a broken neon sign. The defaults are min 40%, max 100% and speed 12 per second. No keyframes needed.

Posterize Time

It plays the motion in choppy steps, like stop-motion. The default frame rate is 12. Apply it to a property that already moves.

Use all three on one layer and you get a simple glitch without plugins. The controls are added to the layer as effects. So you can change the values later. Motion Suite is free until 5 January 2027.

Why isn’t it working?

Displacement Map does nothing

The map layer isn’t precomposed. Precompose the solid with Fractal Noise and pick the precomp as the map.

The edges get cut off

Shifted pixels move outside the layer. In that case, turn on Wrap Pixels Around or Expand Output in Displacement Map.

The glitch never stops

The `chance` value in the expression is too high. Also, lowering `fps` makes glitches rarer.

The preview is very slow

Fractal Noise and Displacement Map are heavy. So preview at half or quarter resolution.

How do we make glitch videos at CrazyPoint?

We are an agency based in Ankara. Ideas, shooting, editing, color and animation are done by the same team. The work moves in three steps:

  1. Idea: We talk about where the video will run and how it should feel.
  2. Edit and effects: We edit the footage and use the glitch only where it helps.
  3. Delivery: We deliver the video in Reels, Stories and landscape sizes.

Shooting, editing and 3 rounds of revisions start at 15,000 TL + VAT. For editing-only jobs, we quote after seeing the footage.

Frequently asked questions

Do I need a plugin for a glitch effect?

No. That’s because Shift Channels, Fractal Noise, Displacement Map and Posterize Time are built into After Effects. All three methods in this post work without plugins.

How do I make a glitch transition?

Put a few frames of glitch right before and after the cut between two clips. For example, 4 frames on each side can be enough. To do this, you can apply the effects to an adjustment layer.

Can I glitch text?

Yes. But precompose the text layer first. Then apply the methods in this post to the precomp.

Is Motion Suite paid?

No. Motion Suite is free until 5 January 2027. Sign in with your Google account on the app page and download it.

Let’s make your video together

Tell us in a few sentences where the video will run and what it should say. We will agree on the scope and send a written quote. For details, see our Video Production page.

Comments are closed