Motion catalogue
Motion, one preset at a time.
42 small loops, each with the few lines of JSON that make it. Copy one into any scene and run levni animate. Every loop here was drawn by Levni from that JSON, on a laptop, with no browser and no video tool.
Loops
Whole cycles per loop, so the last frame meets the first. Give any element "motion".
float
Rises and falls.
{ "motion": { "type": "float", "amp": 22 } }drift
Slides left and right.
{ "motion": { "type": "drift", "amp": 60 } }orbit
Moves on a small circle.
{ "motion": { "type": "orbit", "amp": 26 } }sway
Rocks about its base.
{ "motion": { "type": "sway", "amp": 16 } }wiggle
Shakes, four times a loop.
{ "motion": { "type": "wiggle", "amp": 15 } }pulse
Breathes in size.
{ "motion": { "type": "pulse", "amp": 0.22 } }spin
Turns once a loop.
{ "motion": { "type": "spin" } }blink
Fades and returns.
{ "motion": { "type": "blink", "amp": 0.85, "turns": 2 } }
Entrances
Play once from "delay" for "dur", then hold. With "out": true they leave the same way.
pop
Grows from nothing with a small overshoot.
{ "motion": { "type": "pop", "delay": 0.1, "dur": 0.3 } }fade
Fades in.
{ "motion": { "type": "fade", "delay": 0.1, "dur": 0.35 } }slide up
Slides in from below.
{ "motion": { "type": "slide", "from": "down", "distance": 90, "delay": 0.1, "dur": 0.3 } }slide left
Slides in from the left.
{ "motion": { "type": "slide", "from": "left", "distance": 160, "delay": 0.1, "dur": 0.3 } }wipe
Is uncovered from one side.
{ "motion": { "type": "wipe", "from": "left", "delay": 0.1, "dur": 0.4 } }draw
A drawing is drawn on: the hand-inked lines first, then the colour.
{ "motion": { "type": "draw", "dur": 0.45 } }print
A riso print run: each ink plate lands in turn and slides into register, the line last.
{ "motion": { "type": "print", "dur": 0.45 } }typewriter
Text is typed, with a caret.
{ "motion": { "type": "typewriter", "delay": 0.08, "dur": 0.45, "cursor": "_" } }
Combinations
A list of motions on one element, and "stagger" across many.
print run
Several drawings printed one after another with stagger.
{ "stagger": 0.07, "motion": { "type": "print" } }pop + float
An entrance, then a loop: arrives, then keeps moving.
{ "motion": [ "pop", { "type": "float", "amp": 14 } ] }headline
The title types itself, the line under it slides in.
{ "motion": { "type": "typewriter" } }stagger in
Each element arrives a little after the one before.
{ "stagger": 0.08, "motion": "pop" }stagger wave
The same loop out of step: a wave along a row.
{ "stagger": 0.1, "motion": { "type": "float" } }in and out
With "out": true an entrance leaves the same way, so the loop restarts cleanly.
{ "motion": { "type": "slide", "out": true } }
Camera
The whole drawing pans and zooms under a fixed frame. Set it once on the scene.
zoom
Pushes in and comes back within the loop.
{ "camera": { "zoom": 1.25 } }pan
Moves sideways and comes back.
{ "camera": { "x": [ -60, 60 ], "zoom": 1.15 } }zoom once
One way only, for an intro: starts wide, ends close.
{ "camera": { "zoom": [ 1, 1.35 ], "y": [ 0, -30 ], "once": true } }
Easing
Seventeen named curves for entrances. Same timing, different feel.
easing
The same slide, six curves. Pick one with "ease".
{ "motion": { "type": "slide", "ease": "outBack" } }
Elements that move by themselves
These follow the scene time t with no "motion" field at all.
clouds drift
A cloud with "drift" slides and comes back.
{ "type": "cloud", "x": 320, "y": 200, "size": 230, "drift": 150 }flag
One wave travels along it.
{ "type": "flag", "x": 230, "y": 110, "w": 220, "h": 130, "canton": "blue" }confetti
One full fall per loop.
{ "type": "confetti", "x": 0, "y": 0, "w": 640, "h": 400, "spacing": 40 }rain
The same element as rain.
{ "type": "confetti", "kind": "rain", "x": 0, "y": 0, "w": 640, "h": 400, "spacing": 30, "colors": [ "blue" ] }sunburst
The rays turn.
{ "type": "sunburst", "x": 320, "y": 210, "size": 280, "color": "mustard" }rose
Turns one petal a loop.
{ "type": "rose", "x": 320, "y": 210, "size": 260, "petals": 5 }flowfield
The field shifts in a small circle.
{ "type": "flowfield", "x": 20, "y": 60, "w": 600, "h": 320, "colors": [ "blue", "coral" ] }halftone
The dots breathe.
{ "type": "halftone", "x": 20, "y": 60, "w": 600, "h": 320, "color": "coral", "mode": "radial" }mesh gradient
Each blob moves on its own circle.
{ "type": "meshgrad", "x": 0, "y": 0, "w": 640, "h": 400, "drift": 0.2, "colors": [ "#FF7A59", "#7A5CFF", "#38D6E8", "#FF4FA3" ], "base": "#1B1745" }ASCII globe
A glyph sphere turns once.
{ "type": "glyphfill", "shape": "sphere", "x": 320, "y": 215, "size": 300, "cell": 8, "color": "ink", "accent": "coral", "land": 0.42 }3D turn
A drawing as a 3D object, "spin": 1.
{ "type": "extrude3d", "name": "rocket", "x": 320, "y": 215, "size": 240, "depth": 0.2, "spin": 1 }ribbon
The twist travels along the band.
{ "type": "ribbon", "circle": [ 320, 215, 130 ], "width": 70, "colors": [ "#4B2FD6", "#FF3A44", "#D6E521" ], "twists": 2, "closed": true }spiro draw-on
Draws itself in once.
{ "type": "spiro", "x": 320, "y": 215, "size": 280, "animate": true }dot lines
A brightness wave runs over the dots, "shimmer": 0.6.
{ "type": "dotline", "prop": "rocket", "x": 320, "y": 220, "size": 290, "cell": 6, "color": "#4B2FD6", "muted": "#A7A2BE", "shimmer": 0.6 }glass lens
A glass search bar slides over the drawing and bends it.
{ "lens": { "x": 320, "y": 215, "w": 400, "h": 92, "move": [ 0, 80 ], "icon": true, "label": "Rocket", "kbd": "⌘K" } }
Boil
A still drawing that shimmers: the crayon texture changes a few times a second.
boil
A still drawing that shimmers: crayon textures take turns.
{ "boil": 3 }
Make your own
Save a scene as scene.json and run npx @levni/levni animate scene.json loop.gif. The same file renders a still with levni render, so one scene serves the picture and the loop. GIF plays inside a GitHub README, chat and email; WebP is smaller for web pages; MP4 needs ffmpeg.
Two kinds of motion at most per picture works best: one entrance for the headline and one loop for the mark. See the animation guide, the Motion gallery for finished pieces, or make a moving README banner in your browser.
Questions
- How do I make one of these?
- Copy the scene JSON from a card, save it as scene.json and run npx @levni/levni animate scene.json loop.gif. Levni 0.5.0 or newer draws it on your own machine. Add --width 800 for a README, or end the file name in .webp or .mp4.
- Can I mix motions?
- Yes. "motion" takes a list, such as ["pop", "float"]: the element arrives, then keeps floating. "stagger" on the scene starts each moving element a little after the one before.
- Do the loops really loop?
- Loops run whole cycles, so the frame after the last is the first. Entrances play once and hold; add "out": true and they leave the same way at the end, so the loop restarts cleanly.
- Can my agent use these?
- Yes. The Levni MCP server has a render_animation tool that takes the same scene and writes the GIF or WebP, with a strip of frames for the agent to look at.


