Lexicon / Colour · 5 of 5

41 / Colour

Threshold Flip

At one point on the way down, the whole stage changes its colours at once rather than easing between them: each painting brings its own.

One façade, six lights

Monet painted the west front of Rouen Cathedral more than thirty times, in 1892 and 1893, from rooms across the street, and reworked the canvases in his studio in 1894. Scroll: as each of these six reaches the middle of the screen, the page takes its colours, all at once.

Claude Monet, The Cathedral in the Fog, 1893–94
BrouillardThe Cathedral in the Fog1893–94 · private collection
Claude Monet, Rouen Cathedral Façade and Tour d’Albane (Morning Effect), 1894
Effet du matinRouen Cathedral Façade and Tour d’Albane (Morning Effect)1894 · Museum of Fine Arts, Boston
Claude Monet, Rouen Cathedral, West Façade, Sunlight, 1894
Au soleilRouen Cathedral, West Façade, Sunlight1894 · National Gallery of Art, Washington
Claude Monet, Rouen Cathedral at Noon, 1894
MidiRouen Cathedral at Noon1894 · Pushkin Museum, Moscow
Claude Monet, The Portal, Grey Weather, 1892
Temps grisThe Portal, Grey Weather1892 · Musée d’Orsay, Paris
Claude Monet, Rouen Cathedral in the Evening, 1894
Fin de journéeRouen Cathedral in the Evening1894 · Pushkin Museum, Moscow

also called section theming · discrete palette swap · data-theme

The common form, and the honest one when two palettes are unrelated rather than a rotation apart. Everything rests on the transition: without one it strobes, and much past a second it lags the scroll and reads as a bug. These six palettes are not a rotation of one another — fog, blue morning, full sun, ochre noon, grey weather and evening have nothing in common but the stone — so they are written out, one per canvas, and the stage jumps between them. Each was taken from its painting in OKLab: its most common colour as the ground, moved out of the middle band where no type reads, and its most colourful as the accent.

How it is builtnew IntersectionObserver(fn, { rootMargin: '-45% 0px -45% 0px' }) /* the canvas crossing eye level names itself: stage.dataset.light = … */ .rouen[data-light="l3"] { --ground: …; --ink: …; --accent: … } /* from the canvas */ .rouen { background: var(--ground); transition: background-color .7s }

In full, on GitHub index.html showcase.css showcase.js

Paintings — Claude Monet, public domain, via Wikimedia Commons: The Cathedral in the Fog (private collection), Rouen Cathedral Façade and Tour d’Albane (Morning Effect) (Museum of Fine Arts, Boston), Rouen Cathedral, West Façade, Sunlight (National Gallery of Art, Washington), Rouen Cathedral at Noon (Pushkin Museum, Moscow), The Portal, Grey Weather (Musée d’Orsay, Paris), Rouen Cathedral in the Evening (Pushkin Museum, Moscow). Facts — Rouen Cathedral (Monet series). The palettes are taken from the paintings by build/palette.py.