Library
Interface / Phone
Feed Scroll
A phone flicks through an endless feed of picture posts, and a heart pops on each one.
- Loop
- 8 s, seamless
- Video
- 1080p, 30 fps, no sound
- Built with
- HTML canvas, one file
- Made with
- Claude Fable 5.2, medium 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 8 second motion loop of a phone scrolling a feed. A phone with a dark rounded body stands in the center, with a small pill at the top of the screen and a bottom bar with four dots. Inside the screen is a feed of four posts that repeats forever. Each post has a round avatar with two placeholder bars, a large rounded picture filled with a gradient between the two accent colors with a pale sun and two hills, a row with a small heart and two dots, and two bars for a caption. Four times per loop the feed rests, then flicks up by exactly one post with an eased motion. While a post rests in the middle of the screen, a large white heart pops up on its picture with a small bounce and fades. The small heart under a post brightens once the post reaches the top of the screen. When the frame is wide, add a smaller, dimmer phone on each side scrolling the opposite way. Add a glow behind the main phone, drop shadows and a few slow drifting dots. 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. Use rounded bars and dots wherever words or pictures would go. 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.
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.js5 KB
- core.js2 KB
- index.html1 KB
- render.py2 KB
Free to use and change for your own work. See the license.