06.27 · 3D & Advanced

Water Ripple

Ripples spread from your finger and bend the picture below. Best for hero images.

Drag it

Drag across the pond (a finger will not scroll the page), tap for a pebble, use Tab and the arrow keys, or press Show me.

Try it

Change a setting, then drag the water or press Show me.

Ripple size

How wide each push or drop is.

How long ripples last

Long lets them bounce off the edges and cross.

Bend

How much the picture under the water bends.

More optionsFewer options

Bright glints on the slopes.

Copy the prompt

Paste it into an AI assistant such as ChatGPT, Claude or Cursor to build this in your own project.

Add a water ripple effect to [the picture you want to look as if it lies under water]. Keep two grids of water heights, now and one step earlier. On each step, set every point to half the total of its four neighbors minus its earlier height, then damp it slightly, so ripples spread, cross, bounce off the edges and fade. A finger or mouse drag leaves a trail of small pushes without scrolling the page; a tap drops a pebble. Draw the picture shifted at each point by the slope of the water, so it bends under the waves. Use a coarse grid and fixed steps, and stop once the water is calm. Under reduced motion, show still rings that fade. Match the settings listed below.

Replace the words in brackets with your own element. Your settings are added at the end.

Free and open source. If this helped, a star on GitHub helps other people find it.

Star on GitHub

What it is

The full explanation is in README.md.

Good for

  • Hero pictures
  • Pool, spa and travel sites
  • Playful backgrounds

Avoid on

  • Pictures with text
  • Busy pages