also called gradient blur · layered blur · tapered blur
Stacked layers, each blurring more than the last, each masked to a different band. Far more elegant than a scrim because the image stays legible while the text still reads. A single blurred layer under a gradient mask looks wrong: its blur is the same everywhere and only fades, so the picture seems to sit behind frosted glass. Stacking layers, each twice as blurred as the one before and masked to its own band, makes the blur itself grow towards the edge. Where it goes is the real decision: on the quiet part of each picture, stopping short of its subject. For the Sami family that is the sky.
How it is built
.veil i { backdrop-filter: blur(var(--b)); /* 1, 2, 4, 8, 16, 32px: each twice the last */
mask: linear-gradient(transparent calc(var(--k) * 12.5%), #000 calc((var(--k) + 1) * 12.5%),
#000 calc((var(--k) + 2) * 12.5%), transparent calc((var(--k) + 3) * 12.5%)) }
/* each layer blurs its own band and overlaps the next, so the softening has no edges */In full, on GitHub index.html showcase.css
Photochroms — Photoglob Zürich and the Detroit Publishing Company, 1890s; Library of Congress, Prints and Photographs Division, Photochrom Print Collection; public domain, via Wikimedia Commons: Amalfi, from the Capuchins, The Admiralty, The Mer de Glace, The Exposition of 1897, A Sami family, The Silver Apron. Amalfi, Algiers and the Silver Apron are cropped to the picture, without the scan’s mount and colour target. Facts — Photochrom; the Library of Congress Photochrom Print Collection.