Library
Interface / Tabs
Tab Slide
A glowing pill slides between four tabs while the page below slides to a new layout each time.
- 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 tab bar switching views. A dark rounded window holds a tab bar with four tabs across the top and a content area below it. Each tab has a small icon made of simple shapes, a grid of four squares, three lines, three rising bars and a play triangle, with a short bar beside it. A pill filled with a gradient from the first accent color toward the second sits behind the active tab with a glow. Six times per loop the pill rests, then slides to the next tab and stretches a little while it moves. It travels right across all four tabs and then back to the left, so it ends where it began. Icons turn white as the pill reaches them. The content area slides sideways with the pill and is clipped to the window, showing a different layout for each tab: a grid of six tiles, a list of five rows with avatars and tags, a bar chart whose bars sway gently, and a large media block with a pulsing play button and a progress bar. Add a soft background glow 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.md2 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.