Hulian UIv0.93.5413 components0 components
  • Start
  • Components
  • Blocks
  • Pages
  • Demos
  • Changelog
ChineseEnglish
  • ComponentsComponents
  • ThemeTheme

Backgrounds

  • DotPattern
  • GridPattern
  • StripedPattern
  • Spotlight
  • FadeMask
  • RetroGrid
  • Ripple
  • Meteors
  • Aurora
  • Particles
  • FlickeringGrid
  • WavyBackground
  • Silk
  • Iridescence
  • Threads
  • Orb
  • LiquidChrome
  • Balatro
  • Ballpit
  • Beams
  • ColorBends
  • DarkVeil
  • Dither
  • DotField
  • EvilEye
  • FaultyTerminal
  • Ferrofluid
  • FloatingLines
  • Galaxy
  • GradientBlinds
  • Grainient
  • GridDistortion
  • GridMotion
  • GridScan
  • Hyperspeed
  • LetterGlitch
  • Lightfall
  • Lightning
  • LightPillar
  • LightRays
  • LineWaves
  • LiquidEther
  • PixelBlast
  • PixelSnow
  • Plasma
  • PlasmaWave
  • Prism
  • PrismaticBurst
  • Radar
  • RippleGrid
  • ShapeGrid
  • SideRays
  • SoftAurora

Overlay Effects

  • BorderBeam
  • ShineBorder
  • GlareHover
  • Lens
  • AnimatedBeam
  • OrbitingCircles
  • ProgressiveBlur
  • CardSpotlight
  • Reveal
  • Antigravity
  • BlobCursor
  • ClickSpark
  • Crosshair
  • ElectricBorder
  • GhostCursor
  • GradualBlur
  • ImageTrail
  • LaserFlow
  • MagicRings
  • Magnet
  • MagnetLines
  • MetaBalls
  • MetallicPaint
  • OrbitImages
  • PixelTrail
  • PixelTransition
  • Ribbons
  • ShapeBlur
  • SplashCursor
  • StarBorder
  • StickerPeel
  • TargetCursor
  • Cubes
  • Tilt
  • BorderGlow
  • GlassIcons
  • GlassSurface
  • Lanyard
  • ModelViewer
  • FluidGlass

PlasmaWave

plasma-wave

Animates two intertwined raymarched plasma ribbons with blended theme colors.

Usage

Basic usage

Put it into the relative overflow-hidden container and fill it with className="absolute inset-0"; the two-color default is chart token with adaptive light and dark.

PlasmaWave
tsx
<div className="relative h-56 overflow-hidden rounded-xl bg-neutral-950">
  <PlasmaWave className="absolute inset-0" />
  <div className="absolute inset-0 flex items-center justify-center text-white/80">
    PlasmaWave
  </div>
</div>

Oblique rotation + strong focus

rotationDeg The overall rotating wave belt creates oblique tension; focalLength The larger the corrugations are, the more concentrated they are and the deeper they are.

tsx
<PlasmaWave className="absolute inset-0" rotationDeg={28} focalLength={1.3} />

Hedging flow direction · Warm color

colors Custom two-color; dir2={-1} Let the second ribbon flow in the opposite direction to create a sense of interweaving with the first one.

tsx
<PlasmaWave
  className="absolute inset-0"
  colors={["var(--color-chart-3)", "oklch(0.72 0.22 30)"]}
  dir2={-1}
  speed1={0.1}
  speed2={0.08}
  bend1={1.4}
/>

Wallpaper-level slow bending

Low speed + large bend makes the ripples slowly rise and fall, as the background of the title area is superimposed under the text.

Hulian component library

Plasma Wave · WebGL · Subject Perception

tsx
<div className="relative h-56 overflow-hidden rounded-xl bg-neutral-950">
  <PlasmaWave
    className="absolute inset-0"
    speed1={0.03}
    speed2={0.03}
    bend1={1.6}
    bend2={1.2}
    focalLength={0.6}
  />
  <div className="absolute inset-0 flex flex-col items-center justify-center gap-2">
    <p className="text-lg font-semibold text-white">Hulian Component Library</p>
    <p className="text-xs text-white/60">Plasma Wave · WebGL · Subject Perception</p>
  </div>
</div>

When to Use

Use it for a dense, two-color atmospheric background with interwoven ribbons. Independent speeds, bends, offsets, and rotation support richer compositions than Plasma. For pointer-stirred liquid color, use LiquidEther; for regular geometry, use DotPattern.

Import

ts
import { PlasmaWave } from "@hulianui/ui"

Props

NameTypeDefaultDescription
colorsstring[]["var(--color-chart-1)","var(--color-chart-2)"]CSS color pair; only the first two values are used and token values follow the active theme
xOffsetnumber0Offset the ribbon horizontally (device pixels), moving the ripple focus away from the center
yOffsetnumber0Ribbon vertical offset (device pixels)
rotationDegnumber0Overall rotation angle (degrees), arranging transverse wave bands diagonally for more tension
focalLengthnumber0.8Focal length (sight convergence); the larger, the more concentrated the depth, the smaller the more spread. Recommendation 0.4-1.6
speed1number0.05The flow rate of the first ribbon; the bigger, the faster
speed2number0.05Second ribbon flow rate
dir2number1Second-ribbon direction: +1 follows the first ribbon and -1 reverses it to emphasize interweaving
bend1number1The bending amplitude of the first ribbon; the greater the undulations, the more exaggerated
bend2number0.5The bending amplitude of the second ribbon
classNamestring-Additional class name for the canvas container or fallback div, often used for sizing, rounding, and opacity

Slots

SlotTypeDescription
fallbackReactNodereduced-motion / static alternative content without WebGL; overlaid on top of a static gradient

Usage Guidelines

  • Unlike components of the same family, PlasmaWave does not come with its own positioning class. You must pass className="absolute inset-0" yourself to cover the relative parent container, and use absolute inset-0 / relative z-10 [[webgl-canvas-rendered-but-invisible-negative-zindex-covered]] for overlay content.
  • WebGL client component ("use client"); only fallback is rendered during the SSR phase.
  • colors is parsed by off-screen canvas when passing var(--color-…), must be prefixed with --color-, and the parsing of bare var(--primary) fails with [[oklch-css-var-color-must-parse-via-offscreen-canvas]].
  • Headless screenshots can capture a still or blank frame when rAF is throttled. Verify motion on a real device or with Playwright measurements; see [[recharts-headless-screenshot-blank-clippath-animation-starved]].

Related

DotPattern · GridPattern · StripedPattern · Spotlight · RetroGrid · Ripple

Playground

<div className="relative h-56 overflow-hidden rounded-xl"
     style={{ background: "oklch(0.14 0.02 280)" }}>
  <PlasmaWave
    className="absolute inset-0"
    rotationDeg={0}
    focalLength={0.8}
    speed1={0.05}
    speed2={0.05}
    bend1={1}
    bend2={0.5}
  />
</div>
PreviousPlasmaDecorationNextPrism

On this page

  • Usage
  • Documentation
    • When to Use
    • Import
    • Props
    • Slots
    • Usage Guidelines
    • Related
  • Playground