LoneForgeMotion
Library
Loading  /  Interface

Bounce Dots

Five glossy balls bounce in a wave, squashing as they land and stretching as they fly.

Source kit 7 KB
Loop
6 s, seamless
Video
1080p, 30 fps, no sound
Built with
HTML canvas, one file
Made with
Claude Sonnet 5.5, max effort

The prompt

The prompt this loop was built from. Paste it into your agent to make your own version from the idea.

Make a seamless 6 second motion loop of a loading indicator made of five bouncing balls.

Five glossy balls sit in a row on an invisible floor, on a warm light ground with two large blurred color glows drifting slowly behind them. The balls bounce in a wave from left to right, three bounces per loop, each ball starting a moment after the one before it. A ball stretches as it speeds through the air and squashes flat when it lands, then springs up again. The balls shade from the first accent on the left to the second on the right, and each has a soft highlight in its upper left. Under each ball a soft shadow shrinks and fades as the ball rises, and every landing sends a thin elliptical ripple across the floor in the ball's color.

Write it as one JavaScript file that draws on an HTML canvas with the 2D context. One function draws any moment: render(ctx, W, H, ph, colors), where ph is the loop phase from 0 to 1. Write every motion in whole turns of ph so the last frame flows into the first and the loop has no seam. No text, no logos, no images, no libraries. Scale every size from the shorter side of the canvas so it works wide, vertical and square. Take three colors as inputs: a background and two accents. Take the shadow color from the background so it also works on a dark or a light background.

The source kit

Download

The same code that is drawing the loop on this page. Unzip it, point your agent at START-HERE.md, and it can rebuild the loop and change it.

  • LICENSE.txt1 KB
  • PROMPT.md1 KB
  • START-HERE.md1 KB
  • animation.js4 KB
  • core.js2 KB
  • index.html1 KB
  • render.py2 KB

Free to use and change for your own work. See the license.