Docs/Efectos

Tilt Shift

MIT

Selective focus blur mimicking tilt-shift photography

Cargando shader…

Ajústalo

50
0.3
0.3
0
0
0

Instalación

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

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

Uso

Demo.tsx
1import ShaderTiltShift from '@/components/bastard/ShaderTiltShift';
2
3export default function Demo() {
4 return (
5 <ShaderTiltShift
6 intensity={50}
7 width={0.3}
8 falloff={0.3}
9 angle={0}
10 dispersion={0}
11 jitter={0}
12 />
13 );
14}

Props

PropTipoPor defectoDescripción
intensitynumber50Intensity
widthnumber0.3Width
falloffnumber0.3Falloff
anglenumber0Angle
dispersionnumber0Dispersion
jitternumber0Jitter

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

Créditos

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