# Plasma Wave

> Layered luminous wave ribbons drift across a deep, atmospheric backdrop, adding controlled energy to product and creative hero sections.

Category: Backgrounds · Free · Updated 2026-11-11 · Live demo: https://www.motionkitui.com/components/plasma-wave

## When to use it

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.

## How it works

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.

## Installation

```bash
npx shadcn@latest add https://www.motionkitui.com/r/plasma-wave.json
```

Or copy `components/motionkit/plasma-wave.tsx` below. Requires react, motion and Tailwind CSS v4. Free for personal projects; commercial use needs MotionKit Plus (https://www.motionkitui.com/pricing).

## Props

| 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. |

## Accessibility

- **Keyboard: Not applicable.** A decorative background with no interactive controls.
- **Screen readers: Pass.** The wave artwork is hidden from assistive technology; only your content is read.
- **Reduced motion: Pass.** The waves stay still when reduced motion is enabled, and speed 0 holds them still on request.
- **Colour contrast: Partial.** Contrast varies around the luminous ribbons. Keep text over the dark center or use a translucent panel, and check your chosen palette.

## Source

```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>
  );
}
```
