DocsDither Prism Hero

Dither Prism Hero

A breathtaking WebGL hero background featuring advanced dithering, prismatic refraction, and holographic iridescence rendered in real-time with GLSL.

Installation

pnpm dlx shadcn@latest add @componentry/dither-prism-hero

Dependencies: framer-motion @react-three/fiber three

Usage

import { DitherPrismHero } from "@/components/ui/dither-prism-hero"

<DitherPrismHero 
    title1="Experience" 
    title2="The Future"
/>

API Reference

PropTypeDefault
title1string

First line of the main metallic headline.

—
title2string

Second line of the main metallic headline.

—
color1string

Primary color (deep/dark) for the gradient base.

"#0f0f23"
color2string

Secondary color (mid-tone) for gradient transitions.

"#6366f1"
color3string

Tertiary color (bright/accent) for gradient highlights.

"#ec4899"
speednumber

Animation speed multiplier for all shader effects.

1
ditherIntensitynumber

Intensity of the dithering effect (0-1). Higher values create a more pronounced retro/grainy look.

0.15
prismIntensitynumber

Intensity of the prismatic rainbow refraction (0-1).

0.5
showParticlesboolean

Whether to show floating particles layer.

true
particleCountnumber

Number of floating particles (performance consideration).

50
particleColorstring

Color of the floating particles.

"#ffffff"
childrenReactNode

Custom content to render on top of the background (e.g., buttons, forms).

—
classNamestring

Additional CSS classes for the container.

—

Keep in mind

This component is inspired by various open-source projects and patterns. Please verify licenses and implementation details before using in production.

Need a custom component?

I build bespoke UI components & websites tailored to your brand.

DM me on X
PreviousClosing PlasmaNextGrain Gradient

Experience

The Future