Docs/Fondos

Blob

MIT

Organic animated blob with 3D lighting and gradients

Cargando shader…

Ajústalo

0.5
0.5
0.5
0.5
0.3
-0.3
0.4

Instalación

Terminal
npx shadcn@latest add https://<tu-dominio>/r/shader-blob.json

Crea components/bastard/ShaderBlob.tsx e instala shaders. Más opciones

Uso

Demo.tsx
1import ShaderBlob from '@/components/bastard/ShaderBlob';
2
3export default function Demo() {
4 return (
5 <ShaderBlob
6 colorA="#ff6b35"
7 colorB="#e91e63"
8 size={0.5}
9 deformation={0.5}
10 softness={0.5}
11 highlightIntensity={0.5}
12 highlightX={0.3}
13 highlightY={-0.3}
14 highlightZ={0.4}
15 highlightColor="#ffe11a"
16 />
17 );
18}

Props

PropTipoPor defectoDescripción
colorAstring"#ff6b35"Color A
colorBstring"#e91e63"Color B
sizenumber0.5Size
deformationnumber0.5Deformation
softnessnumber0.5Softness
highlightIntensitynumber0.5Highlight Intensity
highlightXnumber0.3Highlight X
highlightYnumber-0.3Highlight Y
highlightZnumber0.4Highlight Z
highlightColorstring"#ffe11a"Highlight Color

Aquí aparecen las props ajustables. El componente acepta más: revisa el código fuente.

Créditos

Basado en Blob · Shaders.com, adaptado para BSTRD UI.Licencia: MIT. Puedes usarlo, modificarlo y venderlo, conservando el aviso de copyright que va dentro del archivo.