Silk Veil — React Animated Background
A draped silk curtain with a sheen band sweeping across it — domain-warped folds shaded anisotropically like cloth-of-gold, with fine weave grain.

Starting live preview
Usage
import { SilkVeil, SILK_VEIL_PRESETS } from "@/components/SilkVeil";
export function AtelierHero() {
return (
<section style={{ position: "relative", minHeight: "100dvh" }}>
<SilkVeil {...SILK_VEIL_PRESETS.rosewood}
{...{
interactive: true,
speed: 1,
intensity: 1,
folds: 9,
sheen: 1,
from: "#2a1030",
to: "#7c2d64",
accent: "#ffd9a8"
}}
/>
<div style={{ position: "relative", zIndex: 1, padding: "8rem 2rem" }}>
<h1>Cut from light</h1>
</div>
</section>
);
}Implementation notes & API
Purpose: luxury fabric backdrop — vertical folds brighten where the surface tilts toward the light while a diagonal luster band travels across the weave. Mount: full-bleed layer behind content; the weave is opaque. Props: speed, intensity, folds (4-16), sheen (luster strength), from/to/accent (deep, fold, sheen colors). Pointer: interactive is off by default; set it and the light tilts so the sheen follows the cursor. Guardrails: WebGPU required with fallback prop; reduced motion holds one draped frame; best under large serif type.
| Property | Type | Notes / default |
|---|---|---|
interactive | boolean | false in the library; enabled in this preview |
fallback | ReactNode | Shown when the renderer is unavailable |
className / style | string / CSSProperties | Applied to the outer container |
View source on GitHubFree for commercial projects · MIT