Skip to content

Tutorials

How to animate a bouncing ball, frame by frame

The bouncing ball teaches timing, spacing, arcs and squash in one short exercise. Follow a frame-by-frame plan at 12 fps, with positions you can copy and the mistakes to watch for.

By OnionSketch team6 min read

A bouncing ball animation is the classic first exercise. A ball has no face, arms or costume to distract you. If the timing or the spacing is wrong, you see it at once, and when they're right, a plain circle suddenly has weight.

This tutorial builds a ball that drops, bounces three times and rolls to a stop. It takes 30 frames, two and a half seconds at 12 frames per second, and every position is given below, so you can concentrate on drawing. If you'd rather start shorter, the 12-frame version on the tutorials page takes about 20 minutes.

What the exercise teaches

  • Timing: how many frames each part of the movement takes.
  • Spacing: how far the ball travels from one frame to the next. Close drawings read as slow, far-apart drawings as fast.
  • Arcs: the curved path the ball follows.
  • Squash and stretch: how the ball's shape responds to speed and impact.

How a real ball moves

Gravity pulls the ball down at a steady rate, so it picks up speed all the way down and loses speed all the way up. With steady acceleration, the distance covered in each frame grows by the same amount every frame. Count the steps from the top and they follow the odd numbers: 1, 3, 5, 7, 9, 11. That pattern is what makes a fall look heavy instead of floaty.

Sideways, nothing pushes the ball once it's moving, so its horizontal steps stay even. The bounces get lower because the ball loses energy every time it hits the floor, and lower bounces are quicker: a bounce half as high takes about 70% as long.

The plan

The whole animation runs at 12 fps. Each bounce peaks at about half the height of the one before, and its duration follows from that.

SectionFramesTop of the arcContact with the floor
Drop1 to 7Frame 1Frame 7
First bounce7 to 15Frame 11Frame 15
Second bounce15 to 21Frame 18Frame 21
Third bounce21 to 25Frame 23Frame 25
Roll and settle25 to 30NoneRolling

Spacing for the drop

Measure from the top of the drop (frame 1) to the floor (frame 7). Divide that height into 36 equal units and the steps are the odd numbers from earlier:

FrameDistance fallenStep from the previous frame
10%Start, at the top
23%1 unit
311%3 units
425%5 units
544%7 units
669%9 units
7100%, on the floor11 units

Notice how tightly the first three drawings bunch together at the top. That cluster is the hang time, and it's the part beginners spread out too evenly.

Spacing for the bounces

Each bounce is a rise and a mirror-image fall. Measured as a share of that bounce's own height:

BounceFrames each wayHeights on the way up
First444%, 75%, 94%, then the top
Second356%, 89%, then the top
Third275%, then the top

On the way down, use the same heights in reverse.

Horizontally, move the ball the same distance every frame within a bounce. On a 1080-pixel-wide canvas, around 30 pixels a frame carries it most of the way across. You can shorten the step a little after each contact, since the floor steals some speed every time.

Squash and stretch

The ball's shape tells the audience how fast it's going and what it's made of.

  • At the top of each arc the ball is round. It's moving slowest here.
  • On the frames just before and just after contact (frames 6 and 8 for the first bounce), stretch the ball along its direction of travel, about 20% longer and a little narrower.
  • On the contact frame, squash it: flatter and wider, with its bottom flat on the floor. Keep the area about the same, so if it gets a quarter shorter, make it about a third wider.
  • Use less squash and stretch on each smaller bounce. By the third bounce the ball barely deforms.

A soft rubber ball squashes a lot. A bowling ball hardly squashes at all and bounces much lower. Once the basic version works, try both.

Animate it in OnionSketch

  1. On the dashboard, choose the Square card. It opens a 1080 × 1080 canvas at 12 fps, which matches the plan.
  2. Double-click Layer 1 in the Layers panel and rename it "Guide". Draw a floor line near the bottom and a rough path: a big arc from the top left, then three smaller arcs heading right.
  3. Press Ctrl+K (⌘K on a Mac), run Make layer a reference or a drawing layer, and the guide is marked REF.
  4. With the guide still selected, press Shift+H once. The guide is now held, and it will stretch along as you add frames at the end.
  5. Press Shift+N to add a layer above it and name it "Ball". Draw the ball at the top left, either by hand or with the Shape tool (U) set to Ellipse.
  6. Press End to go to the last frame, then press N five times, so the frame counter reads 07 / 07. Draw the squashed ball on the floor line.
  7. Select the onion chip at the top right of the canvas and set Before and After to 1. Go back to frame 2 by pressing , five times. Onion skin counts drawings rather than frames, so you see the top ball in cyan and the contact ball in magenta. Draw frames 2 to 6 using the drop spacing, with a slight stretch on frame 6.
  8. Go to frame 7 and press N four times. On frame 11, draw the round ball at the top of the first bounce, then press N four more times and draw the next contact on frame 15.
  9. Fill in frames 8 to 10 and 12 to 14 from the bounce spacing table, stretching frames 8 and 14.
  10. Repeat steps 8 and 9 for the second and third bounces, using the frame numbers from the plan.
  11. Press N and draw, five times, for frames 26 to 30: the ball rolling along the floor, with steps that get shorter each frame until it stops.
  12. Press Space to play. Loop is on, so it repeats; press Space again to stop.

If you want the ball to rest for a moment before the loop starts again, go to frame 30 and press Shift+H a few times to hold the last drawing.

Check your work

Play it several times before fixing anything, then step through with , and . to find the frame that bothers you. Watch the top of each arc: if the ball seems to stick there, the drawings near the top are too close or too many. If the fall looks like it's on a string, the spacing on the way down is too even.

Turn onion skin up to five drawings either side (select the onion chip at the top right of the canvas) to see the whole arc at once. The ghosts should trace a smooth curve with no bumps.

Common mistakes

  • Even spacing on the way down: the ball should accelerate. Check that each step is longer than the one before.
  • Squash on the wrong frame: the squash belongs on the contact frame only. A squashed ball in mid-air looks like it hit something invisible.
  • A stretched ball at the top of the arc: the ball is slowest there, so it should be round.
  • Changing size: without meaning to, it's easy to draw the ball a little bigger or smaller each frame. Compare against the onion skin ghosts.
  • Every bounce taking the same time: lower bounces should be quicker.
  • Missing the floor: on the contact frame the ball should sit exactly on the floor line, not hover above it or sink below.

Once this works, try changing one thing at a time: a heavier ball, a softer ball, or a ball thrown in from the side. To understand the timing choices in more depth, read Timing at 12 fps, and for more on the ghosts that helped you draw the in-betweens, see Onion skinning explained or the onion skin tool guide.