Infinite zoom animation with Claude Code
An infinite zoom animation, the film where the camera keeps falling into a small detail and each detail opens a new world, is something you can make with Claude Code. Claude writes every scene as a flat vector drawing in code, and HyperFrames renders the result to MP4 on your computer. ReelStyles sells this look as a ready kit, but you can also do it by hand with the rules below.
Further down you find what makes the effect work, the steps in Claude Code, a vertical prompt to paste and the styles that sit next to it. If you have never made a film in code, start with how to make animated videos with Claude Code.
What makes the infinite zoom look
The whole film is one push. Every scene hides the next one inside a small round detail, such as a pupil, a porthole window, a petri dish, a cell nucleus or a planet. The camera falls into that hole, and the next scene is already drawn inside it.
Scenes are nested at their true scale. That is the trick that keeps lines crisp at any depth. The picture is never a bitmap that gets bigger, so an ink outline in #1b1740 keeps the same weight on screen from the first hop to the last.
Each scene gets one flat background that differs strongly from its neighbours: peach, dusk bands, wood, aqua, night. The zoom then reads as a change of world. The palette stays small. Ink #1b1740, cream #fff3dc, coral #ff6b57, teal #19b5a5, sun yellow #ffc83d, lilac #a98bff and sky #6ec6ff cover most scenes, with one warm accent per scene.
The speed feels constant because the scale grows exponentially. Each hop lasts two to three seconds, and four to six hops make a good film. While a portal grows, it slides to the exact centre of the frame, so the end of one hop equals the start of the next.
Life keeps going inside each scene: eyes blink, window lights flicker, birds cross, steam rises. The last portal can lead back to the first picture, which makes a loop with no visible join. Captions are short, two to four words in a pill at the bottom.
Steps in Claude Code
1. Plan first
Ask for the chain of portals as text before any code, so you can fix the story while it is cheap:
Plan a 15-second infinite zoom film in vertical 9:16. Five hops. For each one, name the scene, the round detail that opens the next scene, and a two-word caption. The last portal must lead back to the first picture. Show me the plan before you write any code.
2. Build one scene and look at stills
npx hyperframes lint . npx hyperframes snapshot . --at 1,3,6,9 -o snapshots
snapshot saves PNG frames at the seconds you list. Check that every hole reads as a hole before the push, that the outline weight stays the same, and that the bottom of the frame stays calm for the caption. Go a few rounds before you render.
3. Render
npx hyperframes render . -o out.mp4 --quality looks --workers 2
Use --quality draft first if you only want to see the motion. For narration, read how to add a voiceover to a Claude Code video.
A prompt to paste
Make a 14-second 9:16 vertical infinite zoom animation. Start on a close drawing of a sleeping cat's eye, fall into the pupil to a rooftop at night, into a lit attic window, into a snow globe on a shelf, into the globe's tiny moon, and back out to the cat's eye so the film loops. Flat vector shapes, ink outlines of constant weight, one strong background colour per scene. Captions of two to four words in a pill. Plan first, then show me stills of hop 1 before the rest.
For a funnier cut, turn it into a scale joke where each caption names a size, from "One metre" down to "One micron".
Which styles come closest
The infinite zoom kit has the portal rules, the exponential camera and a stills checklist already written down. These styles are the nearest neighbours.
| Style | Why it fits |
|---|---|
| Infinite zoom | The direct version: nested scenes, portal hops, a loop with no join |
| Doodle film | Hand-drawn flat scenes that suit small round details |
| Flat Cosmic Explainer | Flat vector planets and space for the last hop |
| Memphis flat | Bold flat shapes in strong, separate colours |
They all come in one ReelStyles purchase, and you can try 10 styles free first.
What this method cannot do
It draws flat vector worlds, so it cannot give you a photo fly-through or a 3D camera move. A portal that is too far from the centre makes the glide swing, and more than seven hops tire the viewer, so keep the chain short.
Questions
Does it work for Shorts?
Yes. The shipped example is wide, but 9:16 works when you ask for it in the prompt, as above. Keep the portal in the middle third and leave the bottom for the caption.
Can it loop forever?
Yes. Let the last portal lead into the first picture, and give every idle motion a whole number of cycles per loop. Then the final frame flows into frame 0 with no join.
Do I need to draw anything?
No. Claude draws every shape in code. You approve the plan and the stills, and you say what to change.
Sources
HyperFrames on GitHub (Apache-2.0). See the Infinite zoom style page for the example film.