GSAP Motion Lab

Collection 13

Three.js Image Effects

Eight image treatments where the distortion is GPU shader work, not a CSS transform: each demo maps a local photograph onto a plane and a hand-written GLSL fragment shader samples it at a displaced coordinate, so individual pixels bend while the element itself never moves. Cursor-driven effects pass normalised pointer position and velocity into shader uniforms; Replay runs the same uniforms along a bounded scripted path, so every effect is fully inspectable by touch and by keyboard. Canvases render on demand and mount only near the viewport to stay inside the browser's WebGL context budget. Where WebGL is unavailable — or motion is switched off — the same photograph is shown as an ordinary image with the effect described in text.