Three.js / Character animation 4:50
The Seed Shot: Animate a Rabbit Hop in Three.js
Chapters
What you’ll learn
Animate a rabbit hop with Three.js keyframes. Turn the hop into a short story scene where a seed rolls across an island and sparks two different reactions.
Use position and rotation tracks to block a ten-second scene. Separate idle animation from the story action, use AnimationMixer to sample a pose, and make replay and scrubbing behave consistently.
Use a WebGL 2 browser, Node.js 22.12 or newer, and a code editor. Basic JavaScript helps. Start with the supplied project or watch Build a Cute Cartoon World to see how the island and characters were built.
Project resources
Class transcript
English · 10 chaptersThe Seed Shot
Watch the seed. One rabbit spots it, takes a hop, and lands just in time to see its friend react. We're going to build that little performance together. Welcome to this SuccessGraph tutorial.
In part one, we built this island and gave the rabbits a looping idle. Today, we'll put a single event on a timeline. The seed moves first. The hero notices it, then hops. The friend reacts a little later.
Open the Part 2 project
Download the companion files and unzip them. Open the folder containing package.json in your editor. In the terminal, run npm ci, then npm run lesson. Open the local address Vite prints.
The world file is the original island, rabbits, camera, and lights. Open shot.js for this lesson's animation. Use the stage picker to isolate each pass. Start with blocking. You should see the two rabbits and a seed in the grass.
Give every pose a time
Think of the scene as 10 seconds on a ruler. Zero is the starting pose. Scrub forward to jump to a later pose or press replay to start over. Using one time value lets the prop and both characters agree about what has happened.
Block the seed’s route
Switch to the seed stage. Start by choosing two landmarks. The seed enters on the left and comes to rest just in front of the smaller rabbit. Scrub from the start to the resting position before tuning the bounce.
A vector track stores a time for each pose and three numbers for each position. X and Z put the seed on the island, Y lifts it above the grass. Look at the preview as Y rises and falls between contact poses.
Give the seed a separate rotation track. Now it turns as it travels. Spacing the rotations farther apart in time as it settles gives the tumble a quieter finish. At the end, leave both tracks on a resting pose.
Connect the tracks
The track describes one property. The clip groups the tracks for a character or prop. The mixer applies the clip to its target. At each scene time, sample the mixer and then draw the world.
Separate idle from acting
Switch to the notice stage. There are two transform layers. The outer group moves and turns the rabbit across the island. The child group adds a little idle motion around its own origin.
That separation keeps the idle from replacing the hop height. Start the hero's turn after the seed is already moving. Watch the face turn toward the seed while the feet stay near their starting point. That short wait makes it feel like the rabbit saw something.
Before lifting off, give the hero a low, compressed pose. Scrub back and forth over that moment. There's a short crouch before the jump, so the takeoff feels like it came from the rabbit's legs.
Pose the hop
Switch to hop. Place a takeoff pose, a higher pose in the middle, and a landing pose. Change height and forward position together. Watch the feet leave the turf, cross the gap, and touch down again.
Pause on the landing. If the feet hang in the air, check the final Y value. If the hop feels floaty, bring the takeoff and landing times closer together. Then leave a short settle so the next reaction has room to read.
Give the friend a delayed reaction
Switch to full shot. The smaller rabbit starts later. First, it notices the seed near its feet. Then it turns toward the hero. The delay makes the reaction readable because our attention has already moved to that side of the frame.
Let the two rabbits share the frame for a moment after the main action. Try scrubbing straight past that hold, then run the shot with the hold in. The pause gives that final look a little meaning.
Make replay predictable
The browser computes elapsed seconds from the start of playback. The seek function clamps that value between zero and the shot duration. When you drag the slider, it samples the same pose without needing to play the earlier frames.
Open the companion guide and try changing when the friend reacts. Keep the keyframe times in ascending order. Replay and watch the two rabbits. If they both move at once, push the friend's first turn a little later.
Replay the finished shot
You've made the first story beat of our little animated film. Grab the source and guide with the lesson, then try a timing variation of your own. Next, we'll use camera angles and cuts to tell the same story from a new point of view.
Thanks for watching. If you enjoyed this video, subscribe to SuccessGraph for more.