01
Trail Recording
Every frame, the cursor position is pushed to a 3,000-point trail array.
This historical path gives the snake its organic, curving shape — every twist of your wrist is
preserved.
02
Position Solver
Each image walks the trail segment-by-segment, accumulating distance until
it finds its target position. The angle at each point drives the rotation for that organic slither.
03
Front-to-Back Recycling
Every 120px of cursor travel, the lead image detaches and teleports to the
back of the chain with a new photo. Position-snapped to the tail so it appears seamlessly.
04
Bell Curve Sizing
Images ramp from small at the head, peak at 65% of the chain, then taper at
the tail. The 0.6 multiplier on taper keeps visual weight at both ends.
05
Differential Easing
Head tracks the cursor at 0.25 easing, tail lags at 0.06. This gradient
creates the snake-like feel — the tail whips and oscillates on direction changes.
06
Zero-Latency Upload
Images use URL.createObjectURL() so they never leave the browser.
Drag-and-drop or file picker — full privacy, instant preview, no server round-trip.