How to animate pixel art and make a GIF

Animating pixel art is drawing a handful of frames and choosing how long each one stays on screen. This guide covers how to plan a loop, key poses and in-betweens, timing and spacing, onion skinning and secondary motion — then how to export a GIF that stays crisp everywhere.

Updated November 2026 · 7 min read

The mascot waving, looping.
8 frames, 150 ms each · 11 KB GIF
The wave this guide takes apart, exported as a looping GIF: the same swing twice, with a blink on the second pass.

The short version. Start with a two- to four-frame loop. Draw the key poses first, then the frames between them. Use onion skinning, keep the character anchored, and let loose parts trail behind. Play it constantly. Export the GIF scaled up by a whole number, with hard edges and no semi-transparent pixels.

How frame-by-frame animation works

An animation is a sequence of still frames shown one after another. In pixel art you draw each one, changing only what moves. Two numbers control how it feels:

1. Start with a small loop

Your first animation should be something you can finish in an evening: a coin spinning, a flame flickering, a light blinking, or a two-frame idle where the character's body drops one pixel and comes back up. Small loops teach timing without hours of drawing.

2. Draw key poses, then the in-betweens

Animators draw the most important poses — the keys — first, check that the motion reads with just those, and only then fill in the frames between. In this wave the keys are the two ends of the swing: the arm up and the arm down. The in-between is the arm sticking straight out — and the same drawing is used twice, once on the way down and once on the way back up.

Wave frame 1: the stubby arm raised beside the head.
1 · Key: up
Wave frame 2: the arm sticking straight out to the side.
2 · In-between
Wave frame 3: the arm hanging down.
3 · Key: down
Wave frame 4: the same in-between drawing as frame 2, on the way back up.
4 · In-between
Two keys and one in-between drawing make a whole swing: up, out, down, out. The loop plays it twice. Only the arm moves, swinging at the shoulder, which keeps the wave calm and readable. A walk cycle is built the same way — its keys are the contact poses where both feet touch the ground, its in-betweens the passing poses.

3. Timing and spacing

Timing is how long a movement takes; spacing is how far things move from one frame to the next. Real objects speed up and slow down, so their frames bunch together at the ends of a movement and spread out in the middle. Animators call this easing, or slow-in and slow-out.

A ball hopping in nine evenly spaced positions along an arc.
Even spacing: constant speed
A ball hopping in nine positions that bunch up at the top of the arc, stretched before and squashed on landing.
Eased spacing, squash and stretch
The same nine frames. On the right the ball hangs at the top of its arc and moves fastest near the ground, stretching as it falls and squashing when it lands — which is what makes it feel heavy.

4. Use onion skinning and keep an anchor

Onion skinning shows the neighbouring frames as faint ghosts behind the one you're drawing. It's the single most useful animation tool: you can see exactly how far each part moved and keep the motion even.

The PixeMaker canvas with onion skinning on: the wave's third frame is drawn over faint ghosts of the frames before and after it, so the arm shows in three positions, with all eight frames in the timeline below.
In PixeMaker, turn on Onion skin in the timeline to see the previous and next frames behind the current one.

Pick an anchor — usually the feet — and keep it fixed. A character that slides around its canvas between frames jitters when it plays, and will jitter in a game too.

5. Add secondary motion

Hair, capes, scarves and tails don't move in sync with the body; they react a frame or two later and keep going after it stops. That lag is secondary motion, and it's what makes an animation feel alive rather than mechanical. In the wave above, the two scarf ends sway the opposite way to the arm. Small touches like this are cheap: on the second swing his eyes close for a single 150 ms frame, about as long as a real blink, and the loop suddenly feels alive. Putting parts like that on their own layer makes them easy to adjust without touching the rest.

For movements smaller than a pixel, like breathing, shift colors along an edge instead of moving the whole shape. Changing a few shadow pixels suggests a sub-pixel movement without a jarring one-pixel jump.

6. Test the loop

Play the animation constantly while you work rather than judging frames one at a time. Watch it at actual size. Check the jump from the last frame back to the first — that's where most loops hitch — and look for single pixels that pop in and out of existence.

7. Export a GIF that looks right everywhere

GIF is still the most widely supported animated image format, but it has limits worth knowing:

If you need full alpha transparency or more colors, animated PNG (APNG) and animated WebP support both and work in all current browsers. For social media, a short MP4 is often the most reliable.

The PixeMaker export dialog with GIF selected at 4x scale, producing a 128 by 128 GIF at 8 frames per second.
In PixeMaker, Export → GIF loops every frame at the timeline's speed, scaled 1× to 16× with hard edges.

Making frames for a game rather than a GIF? Pack them into one image instead — see how to make a sprite sheet.

Frequently asked questions

How many frames does a pixel-art animation need?

Simple loops like a blink, a flicker or an idle bob work with 2 to 4 frames. A walk cycle needs at least 4 and looks smoother with 8. A run or an attack usually takes 6 to 8.

What frame rate should pixel art animation use?

Most pixel art plays at 6 to 12 frames per second. More important than the overall rate is varying how long individual frames stay on screen, holding key poses and moving quickly through the frames between them.

What is onion skinning?

A view that shows the previous and next frames as faint ghosts behind the frame you're drawing, so you can see how far each part moved and keep the motion smooth.

Why does my transparent GIF have a white or dark fringe?

GIF transparency is all-or-nothing, so semi-transparent edge pixels are forced to a solid color. Keep your sprite's edges hard (no anti-aliasing against the background), or export it on a solid background color that matches where it will be shown.

Why does my pixel-art GIF look blurry on social media?

Platforms often resize small images with smooth scaling or convert GIFs to video. Upload it already enlarged 4× or more with nearest-neighbour scaling so each pixel survives as a crisp block.

Try it in the editorFree, in your browser, nothing to install.

Open the editor