Docs/Efectos

Key Frames

MIT

Motion-tracking overlay — trackers hunt and follow features in the content, dropping keyframe diamonds behind them along their motion paths, like a compositor mid-track

Cargando shader…

Ajústalo

12
0.15
0.8
0.5
6
1
28
1.5

Instalación

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

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

Uso

Demo.tsx
1import ShaderKeyFrames from '@/components/bastard/ShaderKeyFrames';
2
3export default function Demo() {
4 return (
5 <ShaderKeyFrames
6 trackers={12}
7 detect="bright"
8 threshold={0.15}
9 variance={0.8}
10 agility={0.5}
11 lifespan={6}
12 trail={1}
13 markerSize={28}
14 lineWidth={1.5}
15 markerColor="#54d66b"
16 />
17 );
18}

Props

PropTipoPor defectoDescripción
trackersnumber12Trackers
detect'bright' | 'dark' | 'alpha' | 'red' | 'green' | 'blue'"bright"Detect
thresholdnumber0.15Threshold
variancenumber0.8Variance
agilitynumber0.5Agility
lifespannumber6Lifespan
trailnumber1Trail
markerSizenumber28Marker Size
lineWidthnumber1.5Line Width
markerColorstring"#54d66b"Tracker

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

Créditos

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