Shader Card

shader-card-tw

Shader Card

A stunning card component with an animated shader effect

60fps constantly
Fully customizable
Lightweight & performant
Responsive everywhere

Customize

320
400
0.5
0.15
4
2
1.5
1.5
0.9
0.5
1.5
1.5
0.15
0
1
2
5
0.8

Props

NameTypeDefaultDescription
widthnumber400Width of the card in pixels
heightnumber500Height of the card in pixels
borderRadiusstring"12px"Border radius of the card
speednumber1.0Animation speed multiplier (0.1 - 3.0)
colorstring"#FF9FFC"Color of the effect in hex format
positionYnumber0.1Vertical position of effect (0-1, where 0 is top, 1 is bottom)
scalenumber3Scale of the effect (minimum 0.5 for 50% visibility)
effectRadiusnumber0.9Radius of the effect core
effectBoostnumber0.5Boost intensity multiplier
edgeMinnumber0.0Edge minimum threshold
edgeMaxnumber0.5Edge maximum threshold
falloffPowernumber2Falloff power for gradient
noiseScalenumber1.5Noise scale factor
widthFactornumber0.5Horizontal width factor
waveAmountnumber0.5Wave distortion amount
branchIntensitynumber0.5Branching intensity (higher = more branches)
verticalExtentnumber1.5Vertical extension (higher = taller effect)
horizontalExtentnumber1.5Horizontal extension (higher = wider effect)
blurnumber0Blur amount in pixels
opacitynumber1Opacity of the shader effect (0-1)
childrenReactNodeundefinedContent to render on top of the shader
classNamestring""Additional CSS classes for styling
fragmentShaderstringundefinedCustom GLSL fragment shader code (optional)
autoPlaybooleantrueWhether to automatically play the animation