Library
Interface / Particles
Success Check
A ring draws itself, a disc springs open, a check mark draws on and confetti bursts out.
- 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 success confirmation badge. On a light mint ground with two soft color glows drifting behind it, a circle draws itself clockwise from the top as a gradient ring. A solid disc then springs open inside it, and a thick white checkmark draws itself on top, the short stroke first and then the long one. The whole badge swells slightly as the check lands. At that moment two ring ripples leave the badge one after the other and twenty pieces of confetti burst outward and fade: dots, short bars and diamonds in the two accents and a deeper tone of the first accent. A soft glow builds behind the badge too, and a diagonal glint sweeps across the disc once. Near the end the badge shrinks a little and fades out, so the ground is empty again when the loop restarts. 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 neutral colors and shadows from the background so it also works on a dark or a light background.
The source kit
DownloadThe 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.js6 KB
- core.js2 KB
- index.html1 KB
- render.py2 KB
Free to use and change for your own work. See the license.