Silk Fold Field
A monochrome WebGL silk and obsidian fold field with sculptural ridges, tactile grain, and an optional pointer lens.
Live preview
Interact with the effect here. Drag, hover, and use its controls.
Variation Tweaking
Adjust the options and see the preview update live.
Installation
Install automatically via CLI or manually integrate dependencies and code.
Usage
Import the component and configure visual variants, sizes, and operational states.
import { SilkFoldField } from '@/components/interactions/silk-fold-field' <div className="relative h-[420px] w-full overflow-hidden rounded-3xl border border-border bg-foreground"> <SilkFoldField intensity={1} speed={1} foldFrequency={2.7} foldWarp={5.2} ridgeSharpness={5} grain={0.075} className="size-full" /> <div className="absolute inset-0 grid place-items-center"> <h2 className="font-grotesk text-3xl font-semibold text-background">Build interfaces people remember.</h2> </div></div>Composition
Compose with icons, form triggers, and layout containers.
<div className="relative h-[420px] overflow-hidden rounded-3xl border border-border bg-foreground"> <SilkFoldField intensity={1.1} grain={0.08} className="size-full" /> <div className="absolute inset-0 grid place-items-center p-8 text-center"> <div> <h2 className="font-grotesk text-3xl font-semibold text-background">Build interfaces people remember.</h2> <p className="mt-3 text-sm text-background/70">Production-ready React components, WebGL shaders, and micro-interactions.</p> </div> </div></div>API Reference
Property matrix, types, defaults, and usage descriptions.
Data Attributes
State-reflecting DOM attributes for custom selector styling.
This component does not expose custom data attributes. Standard HTML data attributes are forwarded to its interactive element.
How It Works
A raw WebGL fragment shader domain-warps simplex noise into slow sculptural folds, sharpens ridge light, layers film grain, and fades the upper center so overlay text stays crisp. Pointer input can add a soft lens highlight.
Accessibility
The canvas is decorative and aria-hidden; interactive lens is optional and respects reduced-motion preferences.
Limitations
Features
Meet the team behind the interaction
Crafted for modern web applications and AI agent workflows.
