Image compare
<ImageCompare> stacks two images and lets you drag the divider left and right to compare them.
The two images sit on top of each other: before is left of the divider, after is right of it. Drag the handle or click anywhere on the image to move the divider; on phones, drag sideways to compare and swipe up or down to scroll the page as usual.
<ImageCompare
before="/assets/media/compare-before.jpg"
after="/assets/media/compare-after.jpg"
beforeLabel="Low-res"
afterLabel="High-res"
alt="The same image in low and high resolution"
/>

Both images should have the same aspect ratio; if they don't, after sets the size and before is cropped to fill it. The handle works with the keyboard: arrow keys move it 1%, with Shift 10%, and Home and End move it to either edge. When printed, the two images appear side by side.