Key Frames
MITMotion-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';23export default function Demo() {4 return (5 <ShaderKeyFrames6 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
| Prop | Tipo | Por defecto | Descripción |
|---|---|---|---|
| trackers | number | 12 | Trackers |
| detect | 'bright' | 'dark' | 'alpha' | 'red' | 'green' | 'blue' | "bright" | Detect |
| threshold | number | 0.15 | Threshold |
| variance | number | 0.8 | Variance |
| agility | number | 0.5 | Agility |
| lifespan | number | 6 | Lifespan |
| trail | number | 1 | Trail |
| markerSize | number | 28 | Marker Size |
| lineWidth | number | 1.5 | Line Width |
| markerColor | string | "#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.