Skip to content
All effects

Interactive shader background

A live background drawn by the graphics card, based on a brand shape, that reacts to your mouse.

Backgrounds

This is the real effect. Scroll or move your mouse inside the frame to try it.

The prompt

Add an interactive shader background to [the section I point to] (a live WebGL background that reacts to the mouse). Visual: soft concentric ring bands that rotate slowly, based on [a shape from my logo or brand]. Only use colours from my palette. Add a slow wave warp so the shape feels alive. Interaction: around the mouse pointer, push the field away in a soft bubble (displace the coordinates radially with a smooth falloff), easing the pointer position so it trails a little. Without a pointer (touch devices), let a virtual pointer wander slowly. Tech: one full-screen fragment shader in plain WebGL (no three.js needed) on a canvas behind the content. Cap the device pixel ratio at 1.5 and the frame rate at 30fps, and pause when the section is off screen or the tab is hidden. Keep the text on top readable. Fallback: a static CSS gradient when WebGL is not available, and a single still frame with prefers-reduced-motion. Style: build it in the existing design system of this website. Reuse its colours, fonts, spacing, corner radius and existing classes or components, and don't add new colours or fonts. Use real content from this website for any text or images in the effect (its headings, services and copy), never placeholder text. If the project has no design system yet, ask me for the brand colours and fonts before you start.

What it is

A background that is not an image or a video. The graphics card draws it live, every frame, and it reacts when you move your mouse over it.

When it works

Heroes, mostly. The best versions take a shape from the logo, so the background feels like the brand, not a random gradient. That is the whole trick: base the shape on something from the brand.

Get it right

  • Use your own palette. Generic purple-blue blobs are exactly what makes a site look AI made.
  • Cap the frame rate and pause it when it is off screen. It saves battery.
  • Always have a static fallback.

Also called

  • WebGL background
  • Mouse-reactive shader
  • Animated shader gradient
  • Generative hero background

More effects.

All effects