Interactions
ShadersFree

Silk Fold Field

A monochrome WebGL silk and obsidian fold field with sculptural ridges, tactile grain, and an optional pointer lens.

Full-page view

Live preview

Interact with the effect here. Drag, hover, and use its controls.

Variation Tweaking

Adjust the options and see the preview update live.

Color palette
1
1
2.7
5.2
5
0.075
0.86
0.42
0.52
0.46
1

Installation

Install automatically via CLI or manually integrate dependencies and code.

$npx @istmx/ui add silk-fold-field

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.

PropTypeDefaultDescription
intensitynumber1Overall fold brightness multiplier.
speednumber1Animation time scale.
foldFrequencynumber2.7Vertical fold frequency.
foldWarpnumber5.2Noise warp applied to folds.
ridgeSharpnessnumber5Ridge highlight falloff.
grainnumber0.075Film grain amount.
topFadenumber0.86How strongly the top edge fades.
topFadeStartnumber0.42Vertical position where fading begins.
centerCalmnumber0.52How much the center is dimmed for text.
centerWidthnumber0.46Width of the calm center region.
edgeFadenumber1Outer edge fade strength.
interactivebooleanfalseEnables a pointer lens highlight.
pausedbooleanfalseFreezes animation time.
respectReducedMotionbooleantruePauses motion for reduced-motion users.
invertInDarkbooleantrueInverts the shader in dark mode.
paletteSilkFoldPaletteundefinedOptional color palette with id, name, and colors applied across fold luminance.
classNamestring''Adds classes to the field container.

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.

Keyboard Navigation
TabReach any interactive children rendered above the field.

Limitations

•Requires WebGL support.
•Use it as a background layer behind readable foreground content.

Features

•Domain-warped silk folds.
•Optional color palettes across fold luminance.
•Tactile film grain and edge fade.
•Calm center mask for headline readability.
•Optional pointer lens and pause control.
•Theme-aware light and dark inversion.
Credits

Meet the team behind the interaction

Crafted for modern web applications and AI agent workflows.

Aryan

Aryan

@istmX

Building high-performance interfaces, developer tooling, and autonomous agent workflows.

Helped by
Ella

Ella

UI/UX Designer

Crafting beautiful experiences.

Kenji

Kenji

WebGL & Shader Designer

Bringing visuals to life.

Sarah

Sarah

Motion Designer

Animating the details.