Above the clouds at golden hour: banks of cloud drift past in three depths, lit on the edges facing a glowing sun, parting as the cursor passes.
Sunlight on the floor of a pool: a shifting web of light over deep water, edged with a faint rainbow, that swells as the cursor passes.
Dive in
Customize
Usage
import { Caustics } from "@/components/motionkit/caustics";
<Caustics
className="h-[32rem] rounded-3xl"
>
<h1>Your hero</h1>
</Caustics>Motion
The exact curves this component runs, plotted with Motion's own maths.
Light web
Runs on its own
Hotel, spa and travel heroes, swimwear and summer campaigns, water and wellness brands, and calm, sunlit sign-up pages.
The light on a pool floor is where ripples on the surface focus the sun into bright, thin lines. The shader fakes that with ridged noise: noise folded at its middle so it forms sharp crests, raised to a high power so only the crests stay bright. Two layers at different sizes drift in different directions over coordinates that are themselves gently warped by noise, so the web keeps reshaping. Sampling three times a hair apart for red, green and blue splits each line into a faint rainbow, and the pointer sends out a decaying ring that bends the light as it passes.
| Prop | Type | Default | Description |
|---|---|---|---|
| colors | [string, string, string] | ["#04161C", "#0E5A66", "#BFF6EE"] | The depths, the water and the light on it. |
| speed | number | 1 | How fast the light moves. 0 holds it still. |
| scale | number | 1 | Pattern size; lower is larger and lazier. |
| intensity | number | 1 | Brightness of the light lines, 0 to 1.5. |
| interactive | boolean | true | Let the pointer send a swell through the water. |
| children | ReactNode | — | Your content, layered above. |
How we audit: the WCAG 2.2 animation checklist and respecting reduced motion in React.
Yes. The file starts with "use client", so you can import it straight into a Server Component page or layout. It works in Vite as is, and in Astro as a React island.
Nothing beyond React and Tailwind CSS v4. There is no MotionKit package and no Tailwind config to add.
Yes, with MotionKit Plus. Add the @motionkit registry and your personal token to components.json (the snippet is on your account page), then run npx shadcn@latest add @motionkit/caustics. It saves the file to components/motionkit and installs its dependencies.
Caustics is part of MotionKit Plus (£12 / $15 / €14 a month or £96 / $120 / €112 a year). The live preview and playground are free to explore; Plus unlocks its source code, every customisation control and commercial use.
With reduced motion on, the water is drawn once and holds still. It also stops rendering off screen.
Above the clouds at golden hour: banks of cloud drift past in three depths, lit on the edges facing a glowing sun, parting as the cursor passes.
A calm sea at night: stars over the horizon, a haloed moon, and a long path of glitter on the water that shivers with every swell. The moon drifts after the cursor.
Ribbons of iridescent glass drifting through the dark, twisting to bright edges side-on and blooming with colour face-on, like light on a soap film.
The live preview is free to explore. Plus unlocks the source for Caustics and every other premium component.
Not ready for Plus? A free account unlocks 4 premium components, Depth Card, Rolling Text, Dot Wave and Confetti Button, with no card needed.
Customize
Usage
import { Caustics } from "@/components/motionkit/caustics";
<Caustics
className="h-[32rem] rounded-3xl"
>
<h1>Your hero</h1>
</Caustics>Motion
The exact curves this component runs, plotted with Motion's own maths.
Light web
Runs on its own
Dive in