Holographic
MITIridescent holographic foil sticker with animated rainbow sheen and glitter flakes
Cargando shader…
Ajústalo
1
0
0
1.5
0.75
0.25
1
0.5
1
0.4
Instalación
Terminal
npx shadcn@latest add https://<tu-dominio>/r/shader-holographic.json
Crea components/bastard/ShaderHolographic.tsx e instala shaders. Más opciones
Uso
Demo.tsx
1import ShaderHolographic from '@/components/bastard/ShaderHolographic';23export default function Demo() {4 return (5 <ShaderHolographic6 scale={1}7 rotation={0}8 hueShift={0}9 foilScale={1.5}10 saturation={0.75}11 roughness={0.25}12 speed={1}13 crinkle={0.5}14 crinkleScale={1}15 sparkle={0.4}16 />17 );18}
Props
| Prop | Tipo | Por defecto | Descripción |
|---|---|---|---|
| scale | number | 1 | Scale |
| rotation | number | 0 | Rotation |
| hueShift | number | 0 | Hue Shift |
| foilScale | number | 1.5 | Foil Scale |
| saturation | number | 0.75 | Saturation |
| roughness | number | 0.25 | Roughness |
| speed | number | 1 | Speed |
| crinkle | number | 0.5 | Crinkle |
| crinkleScale | number | 1 | Crinkle Scale |
| sparkle | number | 0.4 | Sparkle |
Aquí aparecen las props ajustables. El componente acepta más: revisa el código fuente.
Créditos
Basado en Holographic · Shaders.com, adaptado para BSTRD UI.Licencia: MIT. Puedes usarlo, modificarlo y venderlo, conservando el aviso de copyright que va dentro del archivo.