LoneForgeMotion
Library
Interface  /  Shapes

Pin Drop

A glossy map pin drops in, squashes on landing, hops three times while ripples spread, then launches back out of the frame.

Source kit 9 KB
Loop
6 s, seamless
Video
1080p, 30 fps, no sound
Built with
HTML canvas, one file
Made with
Claude Sonnet 5.5, max 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 make me 10 more animations, these 10 were my favorite ones so far, attached a picture of the 10 I am talking about. Can you create me some more simple minimalist animations that people would really enjoy.

Build spec:
The request came with a picture of his ten favorite loops so far: glass unlock, comet spinner, bounce dots, progress sheen, success check, notification bell, sound bars, fingerprint scan, battery charge and media button. They are glossy, text-free interface loops built around one small idea each, five on light grounds and five on dark. This loop is one of ten new ones in the same spirit: simple, minimal, easy to enjoy, and not a repeat of anything already in the library.

Make a seamless 6 second loop of a glossy map pin dropping onto a soft ground. The scene starts empty: a pale ground with a pool of light, faint target rings and a small contact shadow that grows as the pin gets closer. The pin falls in from above the frame, stretching as it speeds up, and lands with a squash. It then hops three more times, each hop lower than the last, with a smaller squash on every landing. Ripples in the two accent colors spread across the ground after each landing and a few droplets of dust fly out of the first two. The pin settles with a gentle bob while a last ring pulses out, crouches slightly, then launches straight up and out of the top of the frame, leaving the empty ground ready for the next drop. The pin has a soft body gradient, a bright highlight and a pale hole in its head.

Write it as one JavaScript file that draws on an HTML canvas with the 2D context and registers itself with LFMotion.add, using a render(ctx, W, H, ph, p, M) function where ph is the loop phase from 0 to 1 and p holds a background and two accent colors that visitors can change. 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, no random calls and no clock. Scale every size from the shorter side of the frame so it works wide, vertical and square. Use only the three colors plus white for highlights, take the shadows and glows from the background so it also works on a light or a dark ground, and keep the drawing light enough to run live on a gallery card. Default colors: background #e4efff, first accent #ff4f5e, second accent #ffa04a.

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.md2 KB
  • START-HERE.md1 KB
  • animation.js7 KB
  • core.js2 KB
  • index.html1 KB
  • render.py2 KB

Free to use and change for your own work. See the license.