Shader Card
Card with animated WebGL shader background effect
Shader Card
A stunning card component with an animated shader effect
Customize
Tweak the props liveBasic
#5227FFEffect Shape
Edge & Appearance
Props
| Name | Type | Default | Description |
|---|---|---|---|
width | number | 400 | Width of the card in pixels |
height | number | 500 | Height of the card in pixels |
borderRadius | string | "12px" | Border radius of the card |
speed | number | 1.0 | Animation speed multiplier (0.1 - 3.0) |
color | string | "#FF9FFC" | Color of the effect in hex format |
positionY | number | 0.1 | Vertical position of effect (0-1, where 0 is top, 1 is bottom) |
scale | number | 3 | Scale of the effect (minimum 0.5 for 50% visibility) |
effectRadius | number | 0.9 | Radius of the effect core |
effectBoost | number | 0.5 | Boost intensity multiplier |
edgeMin | number | 0.0 | Edge minimum threshold |
edgeMax | number | 0.5 | Edge maximum threshold |
falloffPower | number | 2 | Falloff power for gradient |
noiseScale | number | 1.5 | Noise scale factor |
widthFactor | number | 0.5 | Horizontal width factor |
waveAmount | number | 0.5 | Wave distortion amount |
branchIntensity | number | 0.5 | Branching intensity (higher = more branches) |
verticalExtent | number | 1.5 | Vertical extension (higher = taller effect) |
horizontalExtent | number | 1.5 | Horizontal extension (higher = wider effect) |
blur | number | 0 | Blur amount in pixels |
opacity | number | 1 | Opacity of the shader effect (0-1) |
children | ReactNode | undefined | Content to render on top of the shader |
className | string | "" | Additional CSS classes for styling |
fragmentShader | string | undefined | Custom GLSL fragment shader code (optional) |
autoPlay | boolean | true | Whether to automatically play the animation |
widthnumberWidth of the card in pixels
400heightnumberHeight of the card in pixels
500borderRadiusstringBorder radius of the card
"12px"speednumberAnimation speed multiplier (0.1 - 3.0)
1.0colorstringColor of the effect in hex format
"#FF9FFC"positionYnumberVertical position of effect (0-1, where 0 is top, 1 is bottom)
0.1scalenumberScale of the effect (minimum 0.5 for 50% visibility)
3effectRadiusnumberRadius of the effect core
0.9effectBoostnumberBoost intensity multiplier
0.5edgeMinnumberEdge minimum threshold
0.0edgeMaxnumberEdge maximum threshold
0.5falloffPowernumberFalloff power for gradient
2noiseScalenumberNoise scale factor
1.5widthFactornumberHorizontal width factor
0.5waveAmountnumberWave distortion amount
0.5branchIntensitynumberBranching intensity (higher = more branches)
0.5verticalExtentnumberVertical extension (higher = taller effect)
1.5horizontalExtentnumberHorizontal extension (higher = wider effect)
1.5blurnumberBlur amount in pixels
0opacitynumberOpacity of the shader effect (0-1)
1childrenReactNodeContent to render on top of the shader
undefinedclassNamestringAdditional CSS classes for styling
""fragmentShaderstringCustom GLSL fragment shader code (optional)
undefinedautoPlaybooleanWhether to automatically play the animation
true