A soft, blurred conic gradient turning slowly behind your content, like light moving round a room.
Layered luminous wave ribbons drift across a deep, atmospheric backdrop, adding controlled energy to product and creative hero sections.
Customize
Usage
import { PlasmaWave } from "@/components/motionkit/plasma-wave";
<PlasmaWave
className="min-h-[32rem] rounded-3xl"
>
<div className="relative z-10 mx-auto max-w-3xl py-32 text-center">
<p className="text-sm text-white/60">A signal in motion</p>
<h1 className="mt-4 text-6xl font-semibold tracking-tight text-white">Make waves.</h1>
</div>
</PlasmaWave>Motion
The exact curves this component runs, plotted with Motion's own maths.
Wave ribbons
Runs on its own
Product launches, creative studios, music and media pages, and portfolio covers that need a vivid focal point with controlled movement. Place longer copy on a quiet surface above the luminous ribbons.
Three SVG curves are drawn as fine, coloured ribbons with a blurred duplicate beneath each one for the plasma glow. CSS keyframes move each ribbon across a deep navy radial surface at a different pace. Reduced-motion settings hold the waves still, and speed 0 provides the same still version explicitly.
Works in the App Router as is. Requires Tailwind CSS v4.
One command adds the file and installs its dependencies. Needs a components.json (run npx shadcn@latest init once if you don't have one).
npx shadcn@latest add https://www.motionkitui.com/r/plasma-wave.jsonnpm install motionSave as components/motionkit/plasma-wave.tsx.
"use client";
import { useId, type ReactNode } from "react";
import { useReducedMotion } from "motion/react";
type PlasmaWaveProps = {
children?: ReactNode;
/** The three colours used by the layered plasma ribbons. */
colors?: [string, string, string];
/** Wave movement speed. 0 holds the waves still. */
speed?: number;
/** Overall glow strength, from 0 to 1. */
intensity?: number;
className?: string;
};
const paths = [
"M-120 170 C 80 40, 180 290, 390 160 S 700 45, 920 180 S 1230 290, 1450 140",
"M-140 235 C 70 330, 210 90, 420 220 S 710 340, 940 210 S 1220 95, 1470 245",
"M-120 105 C 100 220, 230 20, 440 115 S 730 235, 940 120 S 1240 20, 1450 115",
"M-100 285 C 120 170, 250 335, 470 260 S 760 145, 990 270 S 1260 340, 1450 225",
"M-120 65 C 80 140, 250 5, 450 72 S 720 170, 950 65 S 1240 5, 1450 75",
];
/** Layered, luminous wave ribbons with a calm plasma glow for polished hero backgrounds. */
export function PlasmaWave({
children,
colors = ["#6D7CFF", "#41D6C3", "#D078F2"],
speed = 1.4,
intensity = 0.72,
className = "",
}: PlasmaWaveProps) {
const reduceMotion = useReducedMotion();
const id = useId().replaceAll(":", "");
const pace = Math.max(speed, 0.05);
return (
<div className={`relative isolate overflow-hidden bg-[#080B14] ${className}`}>
<div aria-hidden className="pointer-events-none absolute inset-0 -z-10 overflow-hidden">
<div className="absolute inset-0 bg-[radial-gradient(ellipse_at_50%_40%,#18233d_0%,#0b1020_48%,#080b14_100%)]" />
{paths.map((path, index) => (
<div
key={path}
className="absolute inset-0"
style={{
animation: reduceMotion || speed === 0 ? "none" : `plasma-wave-drift ${(10 + index * 1.5) / pace}s ease-in-out ${index * -1.4}s infinite alternate${index % 2 ? "-reverse" : ""}`,
}}
>
<svg viewBox="0 0 1200 360" preserveAspectRatio="none" className="absolute inset-y-0 left-[-10%] h-full w-[120%]" style={{ opacity: intensity }}>
<defs>
<filter id={`${id}-glow-${index}`} x="-30%" y="-80%" width="160%" height="260%">
<feGaussianBlur stdDeviation="18" />
</filter>
<linearGradient id={`${id}-color-${index}`} x1="0" x2="1" y1="0" y2="0">
<stop offset="0%" stopColor={colors[index % colors.length]} stopOpacity="0.05" />
<stop offset="48%" stopColor={colors[index % colors.length]} stopOpacity="0.98" />
<stop offset="100%" stopColor={colors[index % colors.length]} stopOpacity="0.08" />
</linearGradient>
</defs>
<path d={path} fill="none" stroke={`url(#${id}-color-${index})`} strokeWidth="32" filter={`url(#${id}-glow-${index})`} opacity="0.8" />
<path d={path} fill="none" stroke={`url(#${id}-color-${index})`} strokeWidth="2.5" opacity="0.95" />
<path d={path} fill="none" stroke="white" strokeWidth="0.7" opacity="0.18" />
</svg>
</div>
))}
<div className="absolute inset-0 bg-[radial-gradient(ellipse_at_center,transparent_20%,rgb(5_8_15/0.58)_100%)]" />
</div>
<style>{`@keyframes plasma-wave-drift { from { transform: translate3d(-7%, 1%, 0); } to { transform: translate3d(7%, -3%, 0); } }`}</style>
{children}
</div>
);
}
| Prop | Type | Default | Description |
|---|---|---|---|
| children | ReactNode | — | Content placed above the wave ribbons. |
| colors | [string, string, string] | indigo, teal, violet | The three plasma ribbon colours. |
| speed | number | 1.4 | Movement speed. 0 holds the waves still. |
| intensity | number | 0.72 | Overall glow strength, from 0 to 1. |
| className | string | — | Classes for sizing and rounding the background. |
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. Run npx shadcn@latest add https://www.motionkitui.com/r/plasma-wave.json in any project with a components.json. It saves the file to components/motionkit and installs its dependencies.
The waves stay still when reduced motion is enabled, and speed 0 holds them still on request.
Yes. Set speed to 0, or enable reduced motion in the operating system. The coloured ribbons stay visible without moving.
A soft, blurred conic gradient turning slowly behind your content, like light moving round a room.
The rim of a dark planet catching the light, with a soft atmosphere and a highlight gliding along the curve. Pure CSS.
Drifting, blurred color fields for hero sections and empty states.