Lexicon / Image · 7 of 7

31 / Image

Image Comparison Slider

Two versions of the same frame, one laid over the other. Drag the divider across to compare them.

Where the ice was

Five views in Glacier National Park, Montana, each photographed from the same spot decades apart. At the height of the Little Ice Age the park held about 80 glaciers larger than a tenth of a square kilometre; by 2005 there were 32. Drag across each pair.

Grinnell Glacier in 2025
Grinnell Glacier in 1910

Grinnell Glacier

from Lower Grinnell Ridge

19102025 · 6 September 2025115 years apart

Jackson Glacier in 2020
Jackson Glacier in 1914

Jackson Glacier

below Mount Jackson

19142020106 years apart

Sperry Glacier in 2023
Sperry Glacier in 1907

Sperry Glacier

the arm below Mount Edwards

1907 · Morton J. Elrod2023116 years apart

Jackson Glacier in 2025
Jackson Glacier in 1941

Jackson Glacier

from Going-to-the-Sun Road

1941 · Marian Post2025 · 25 August 202584 years apart

Boulder Glacier in 1988
Boulder Glacier in 1932

Boulder Glacier

the ice cave

1932 · T. J. Hileman, for the Great Northern Railway1988 · Jerry DeSanto, park ranger56 years apart

also called before/after · juxtapose

One image clipped over another, the clip driven by pointer position. Keep both layers exactly registered or the comparison lies. The two photographs of each place were taken from the same spot but never framed exactly alike, so the later one is scaled, turned and shifted until its rock edges sit on the earlier one’s, and both are cropped to the window they share. The divider is a native range input underneath: drag it, click anywhere, or use the arrow keys.

How it is built.then { clip-path: inset(0 calc(100% - var(--x) * 1%) 0 0) } /* the earlier picture, cut at the divider */ .now img { transform: translate(var(--tx), var(--ty)) rotate(var(--rot)) scale(var(--s)) } /* --s, --rot, --tx, --ty: measured once, so the later picture's rock lies on the earlier's */ input[type=range] → --x /* the divider is a real slider */

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

Photographs — Glacier National Park’s repeat photography and archives, public domain, via Wikimedia Commons: Grinnell 1910, Grinnell 2025, Jackson 1914, Jackson 2020, Sperry 1907, Sperry 2023, Road 1941, Road 2025, Boulder 1932, Boulder 1988. Glacier counts — USGS, Status of glaciers in Glacier National Park.