Silk Ribbon
Pro
A flowing silk-ribbon background with smooth motion, soft sheen, and controls for ribbon width, scale, glow, and palette.
Code
Usage
<ShaderSilkRibbon
silkDrift={0.84}
ribbonScale={2}
ribbonWidth={1.2}
sheenStrength={0.86}
sheenWidth={1.05}
primaryRibbonColor="#fa6b45"
secondaryRibbonColor="#30d1b8"
sheenColor="#edd1ad"
/>Props
| prop | type | default | description |
|---|---|---|---|
silkDrift | number | 0.84 | Silk drift multiplier. |
ribbonScale | number | 2 | Ribbon field scale. |
ribbonWidth | number | 1.2 | Ribbon body width multiplier. |
sheenWidth | number | 1.05 | Ribbon sheen highlight width multiplier. |
sheenStrength | number | 0.86 | Ribbon sheen strength. |
opacity | number | 0.92 | Sets the overall opacity of the shader background wrapper. |
maxDpr | number | 1.5 | Caps device pixel ratio for sharper output without runaway GPU cost. |
maxFps | 30 | 45 | 60 | 60 | Caps the animation frame rate for performance-sensitive pages. |
primaryRibbonColor | string | "#fa6b45" | Primary ribbon color as a CSS color or normalized RGB. |
secondaryRibbonColor | string | "#30d1b8" | Secondary ribbon color as a CSS color or normalized RGB. |
sheenColor | string | "#edd1ad" | Sheen highlight color as a CSS color or normalized RGB. |