A cone of light from above that sways gently and turns to follow the pointer.
A feathered light follows the cursor, revealing a glowing texture. On touch screens it drifts on its own and follows a drag.
Customize
Usage
import { CursorAtmosphere } from "@/components/motionkit/cursor-atmosphere";
<CursorAtmosphere
className="h-[32rem] rounded-3xl"
>
<h1>Your hero</h1>
</CursorAtmosphere>Motion
The exact curves this component runs, plotted with Motion's own maths.
Light follow
Pointer moves
Drift
No pointer, or a touch screen
Interactive heroes and feature sections where the pointer explores a hidden texture, and it still works on phones.
A soft wash of colour and a brighter copy of the dot or grid texture are both masked by a radial gradient at the light's position. The pointer steers the light through springs. Without a pointer, the light drifts along a slow figure-of-eight, and a finger steers it only while pressed, so scrolling never yanks it around.
| Prop | Type | Default | Description |
|---|---|---|---|
| colors | [string, string, string] | ["#5FAEB4", "#0E7C86", "#A56D5B"] | Centre, middle and outer colours of the light. |
| radius | number | 280 | Radius of the light in pixels. |
| intensity | number | 0.8 | Strength of the light, 0 to 1. |
| interactive | boolean | true | Follow the pointer. Off, it drifts on its own. |
| pattern | "dots" | "grid" | "none" | "dots" | The texture the light reveals. |
| 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.
Only the motion package, beside 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/cursor-atmosphere. It saves the file to components/motionkit and installs its dependencies.
Cursor Atmosphere 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 light rests in the middle and the drift stops.
A cone of light from above that sways gently and turns to follow the pointer.
A soft ribbon of light behind the pointer, across the window or inside one section.
Drifting, blurred color fields for hero sections and empty states.
Move through the light
The live preview is free to explore. Plus unlocks the source for Cursor Atmosphere 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 { CursorAtmosphere } from "@/components/motionkit/cursor-atmosphere";
<CursorAtmosphere
className="h-[32rem] rounded-3xl"
>
<h1>Your hero</h1>
</CursorAtmosphere>Motion
The exact curves this component runs, plotted with Motion's own maths.
Light follow
Pointer moves
Drift
No pointer, or a touch screen
Move through the light