also called drag-to-scroll · inertial scrolling · momentum decay
Everything lives in the decay constant. 0.90 stops abruptly and feels cheap; 0.98 slides forever and feels broken. Around 0.94 is where it starts feeling like an object with mass. Try all three under the map. The strip itself is eight overlapping sheets of the facsimile, each measured against the next and set in place with a scale, a turn of a fraction of a degree and a cut at the middle of the overlap, so no town appears twice; where a sheet’s band falls short, the map’s own sea fills in.
How it is built
v *= decay ** (dt / 16.7) /* each frame keeps a share of its speed */
if (Math.abs(v) < 0.02) stop()
.roads { overflow-x: auto } /* touch, trackpad, keys: the native scroll */
.sheet { transform: translate(…) rotate(…) scale(…); clip-path: inset(…) } /* stitched */In full, on GitHub index.html showcase.css showcase.js
Map — the Tabula Peutingeriana (the surviving copy, about 1200, Austrian National Library), in Konrad Miller’s facsimile of 1888, from the National Library of Australia, public domain, via Wikimedia Commons: sheet 1, sheet 2, sheet 3, sheet 4, sheet 5, sheet 6, sheet 7, sheet 8. Facts — Tabula Peutingeriana.