Ripple

Original demo by Erik Dahlström, published October 4, 2009.

Open Ripple in the gallery

Ripple turned a still picture into a surface you could disturb. Clicking anywhere sent a circular wave outward from that point, bending the image as it passed and fading away after three seconds.

The effect depends on a small displacement map. Its red and green channels hold a direction pointing around a ring, with neutral grey everywhere else. feDisplacementMap reads those values and shifts pixels accordingly, so only the ring distorts the picture. Scaling the map up over time makes the ring travel, and an animated radial mask softens its edge and fades it out.

The original placed the map with an feImage that pointed at another element. Chromium and WebKit still render that form, but Firefox does not, so this restoration loads the map as a file and animates the feImage position and size instead. The mask became a regular SVG mask for the same reason. The filter now interprets the map in sRGB, because under linearRGB a neutral value moved the whole image by about nine units in all three engines.

The photograph and the map were replaced with new work: a drawn leaf with water drops and a map computed from a formula.

This note was newly written for the reconstruction. Read the original post in the Internet Archive.

Topics: Animation, Filters, Interactive