Shader Anime Fire
Cel-shaded WebGL flames that rise from the bottom and reach for the pointer.
Preview
Installation
pnpm dlx shadcn@latest add @23rd/shader-anime-fireOr from the public GitHub registry:
pnpm dlx shadcn@latest add radiumcoders/23rd.dev/shader-anime-fireUsage
Pin it behind a relatively positioned section, with content in relative z-10.
"use client"
import { ShaderAnimeFire } from "@/components/ui/shader-anime-fire"
export function Hero() {
return (
<section className="relative isolate min-h-svh overflow-hidden bg-background">
<ShaderAnimeFire />
<div className="relative z-10 mx-auto flex min-h-svh max-w-xl flex-col items-center justify-center px-6 text-center">
<p className="text-xs font-medium tracking-[0.18em] text-muted-foreground uppercase">
New
</p>
<h1 className="mt-3 text-4xl font-medium tracking-tight">
Ship something that catches
</h1>
<p className="mt-3 text-muted-foreground">
Flames along the floor. The copy stays clear.
</p>
</div>
</section>
)
}Lock the theme:
<ShaderAnimeFire theme="light" />
<ShaderAnimeFire theme="dark" />Print it as Bayer pixels:
<ShaderAnimeFire dither pixelSize={3} />Props
| Prop | Type | Default |
|---|---|---|
colors | string[] | ember / flame / core |
speed | number | 0.6 |
intensity | number | 1 |
height | number | 0.45 |
interactive | boolean | true |
dither | boolean | false |
pixelSize | number | 1 |
theme | "light" | "dark" | "auto" | auto |
className | string | React only |
class | string | Svelte only |
