Library
Loading / Shapes
Hourglass Flow
A frosted glass hourglass drains glowing golden sand into a mound, then flips with a crisp spring and sheen.
- Loop
- 8 s, seamless
- Video
- 1080p, 30 fps, no sound
- Built with
- HTML canvas, one file
- Made with
- Gemini 4 Neon, xhigh effort
The prompt
The prompt this loop was built from. Paste it into your agent to make your own version from the idea.
Attached a picture are my favorite 10 so far. View all the animations on the website, https://motion.loneforge.ai/, can you take a look at the animations I have an create me 10 more that people would really enjoy because they look high quality and satisfying. Build spec: Make a seamless 8 second loop of a frosted glass hourglass centered over a warm ambient background with two slowly drifting color glow pools and a soft ground shadow. The hourglass has symmetric translucent glass bulbs with glossy vertical highlights and smooth metallic end caps. Glowing golden sand drains smoothly from the upper bulb in a bright shimmering stream accompanied by drifting micro-grains, building into a warm lit mound below. When the bottom bulb fills, a subtle completion ring expands outward and the entire hourglass lifts and flips 180 degrees with a crisp spring settle while a diagonal glass sheen sweeps across the surface, returning seamlessly to the starting state. Write it as one self-contained JavaScript file drawing on an HTML canvas 2D context via 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 looks rich wide, vertical and square, and adapt neutral ink and glass 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.js10 KB
- core.js2 KB
- index.html1 KB
- render.py2 KB
Free to use and change for your own work. See the license.