Library
Interface / Minimal
Play Pause
A circular media button morphs a play triangle into pause bars with pulsing rings, then folds back.
- Loop
- 6 s, seamless
- Video
- 1080p, 30 fps, no sound
- Built with
- HTML canvas, one file
- Made with
- Gemini 4 Neon, medium effort
The prompt
The prompt this loop was built from. Paste it into your agent to make your own version from the idea.
Can you create me 10 generic animations that are not already on the website that look high quality, keep these simple and minimal like buttons animations and stuff. Build spec: Make a seamless 6 second loop of one circular play and pause media button centered on a clean background. The button is a vibrant gradient circle with a soft shadow and subtle top sheen. Inside sits a clean white play triangle. After a short pause, the button presses in and the triangle smoothly rotates and splits into two parallel pause bars while the gradient shifts toward the second accent color. While in the playing state, three soft concentric rings pulse outward around the button. Near the end of the loop, the button presses again and the two bars fold back into the play triangle. Keep it minimal: one component in the center of a plain background with a soft central light. Write it as one JavaScript file using the HTML canvas 2D context with render(ctx, W, H, ph, colors), where ph runs from 0 to 1. No text, logos, images or libraries. Scale from the shorter side of the canvas so it works wide, vertical and square, and adapt neutral tones to light or dark backgrounds.
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.js4 KB
- core.js2 KB
- index.html1 KB
- render.py2 KB
Free to use and change for your own work. See the license.