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.
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.
Above it all
Customize
Usage
import { CloudSea } from "@/components/motionkit/cloud-sea";
<CloudSea
className="h-[32rem] rounded-3xl"
>
<h1>Your hero</h1>
</CloudSea>Motion
The exact curves this component runs, plotted with Motion's own maths.
Cloud drift
Runs on its own
Travel, airline and outdoor brands, meditation and sleep apps, dreamy product launches and "above it all" premium heroes.
The sky is a vertical blend from your top colour to the horizon with a two-part glow around the sun. Clouds are fractal noise in three layers, each squashed towards the horizon so they lie in a plane below you, and moving faster the nearer they are, which gives real depth. Each cloud is lit by comparing its density with a sample a little closer to the sun: where it thins in that direction the edge glows in sunlight, and elsewhere it falls into a cool shadow. A touch of haze, a vignette and fine grain finish it.
| Prop | Type | Default | Description |
|---|---|---|---|
| colors | [string, string, string] | ["#1B1F3B", "#E8957A", "#FFE2B8"] | Sky at the top, the horizon and the sun. |
| speed | number | 1 | How fast the clouds drift. 0 holds them still. |
| cover | number | 0.5 | How much of the sky is cloud, 0 to 1. |
| sunHeight | number | 0.35 | Height of the sun, 0 on the horizon to 1 high. |
| interactive | boolean | true | Let the clouds part a little around the pointer. |
| 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/cloud-sea. It saves the file to components/motionkit and installs its dependencies.
Cloud Sea 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 sky is drawn once and the clouds hold still. It also stops rendering off screen.
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.
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 Cloud Sea 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 { CloudSea } from "@/components/motionkit/cloud-sea";
<CloudSea
className="h-[32rem] rounded-3xl"
>
<h1>Your hero</h1>
</CloudSea>Motion
The exact curves this component runs, plotted with Motion's own maths.
Cloud drift
Runs on its own
Above it all