StealThis .dev

Museum — Historical Timeline

A curatorial historical timeline that walks five centuries of art movements as colour-coded era bands and dated milestone markers. A scrubber travels through the years and highlights the active era, while click-to-expand cards open a typeset museum label with artist, medium, dimensions, catalogue number and credit line. Era chips filter the track, arrow keys step between works, and the horizontal rail folds into a vertical timeline on mobile — refined serif display type, soft gallery shadows and inline plate imagery throughout.

Open in Lab
html css vanilla-js
Targets: JS HTML

Code

Historical Timeline

A timeline for narrating a collection across time. Five art movements — Baroque, Romanticism, Impressionism, Modernism and Contemporary — are drawn as colour-coded era bands above a scrubber, with twelve fictional milestones threaded along a horizontal rail. Each milestone is a card with an inline plate, a year, a movement badge, and the title and artist of a work; the markers ride the rail in chronological order so the eye reads the centuries left to right.

Dragging the scrubber moves through the years, dims every band but the one you are inside, and glides the track to the nearest work. Era chips above filter the rail, fading out everything off-movement and recentring on the first piece. Clicking any card opens a typeset museum label below the rail — medium, dimensions, catalogue number, credit line and a short curatorial note — accented in the era’s colour. The left and right arrow keys step between visible works, Escape closes the label, and on narrow screens the whole rail folds into a vertical timeline.

Everything is vanilla HTML, CSS and JavaScript: refined Cormorant Garamond display type for titles, quiet Inter for the interface, CSS-gradient plates standing in for artworks, a small toast() helper, visible focus rings and a layout that holds together down to about 360px.

Illustrative UI only — demo data; not a real museum system.