Library navigation

Plasma Rift

Cyan and emerald plasma ribbons fold into a dark, flowing vortex.

Cyan, white, and emerald ribbons fold into a dark vortex inspired by luminous plasma. Move the pointer to shift the vanishing point.

Plasma Rift is a vgpu-powered React UI component that renders a WGSL shader through WebGPU. It supports reduced motion and provides a fallback for browsers without WebGPU.

Installation

text
Add the plasma-rift-background component from Hangry UI to this project.
Use the project's package manager to run:
shadcn@latest add https://ui.razeev.com/r/plasma-rift-background.json
Integrate the component with the existing layout and styling.
Keep its interactions and reduced-motion support intact.

How to use

tsx
import { PlasmaRiftBackground } from "@/components/hangry-ui/shader/plasma-rift-background";
<PlasmaRiftBackground speed={0.2} intensity={0.9}
className="grid place-items-center p-12">
<h2 className="typography-section-title text-white">Through the rift.</h2>
</PlasmaRiftBackground>

Props

PropTypeDefaultDescription
speednumber0.2Nonnegative animation speed. Set 0 to freeze the ambient flow.
intensitynumber0.9Color brightness, clamped to 0–2.
interactivebooleantrueBend and brighten the color field near the pointer.
childrenReactNode—Content displayed above the shader.
Native div propsComponentProps—Classes, styles, IDs, and accessibility attributes.

Dependencies

  • Motion
  • vgpu