Skip to content

Instantly share code, notes, and snippets.

@nitaku
Last active December 31, 2015 22:29
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nitaku/8054295 to your computer and use it in GitHub Desktop.
Save nitaku/8054295 to your computer and use it in GitHub Desktop.
Before/after image

A widget that can be used to compare two images by dragging.

Photos are taken from Google Earth, I do not own them. The grayscale one is from 2003, while the other is from 2013. By dragging the photos, you can see the bridge that has been destroyed in 2009 at the bottom of the picture.

Inspired in part by this ABC page on the Fukushima disaster.

The technique used leverages SVG image patterns. A hack (an overlayed gray rectangle) is used to hide the ugly progressive rendering of image loading.

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment