LoneForgeMotion
Library
Interface  /  Minimal

Theme Flip

A dark mode pill slides its glowing sun into a crescent moon among twinkling stars, then glides back.

Source kit 7 KB
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 minimal day and night theme toggle centered on a clean background.

The track is a wide rounded pill with a soft drop shadow and inner top shadow. In daylight mode, the track has a warm pale tint with soft white clouds on the right and a glowing sun knob with slowly rotating rays on the left. As the knob slides to the right, the track deepens into night tones, the clouds sink away, five small stars rise and twinkle on the left, and a curved shadow slides across the knob to carve a crisp crescent moon. After holding in night mode, the knob glides back to daylight.

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

Download

The 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.