Skip to content
Image Effects

ImageDistort

The picture bulges under the pointer and smears with its speed, with a little colour split. WebGL, no three.js. The plain picture stays underneath for screen readers and for devices without WebGL.

Download
  • React
  • Tailwind CSS v4
  • motion

Props

NameTypeDefaultWhat it does
srcstring—Picture address. From another site it needs CORS headers, or the plain picture shows with no effect.
altstring—Text for screen readers.
strengthnumber1How hard the picture bends, 0 to 1.
radiusnumber0.4Size of the bent area, as a part of the picture height.
classNamestring"aspect-video"Set the size here.