Time Trail
MITAn Echo-style temporal trail — whatever moves sheds a smooth, decaying long-exposure ghost trail (frame-difference Motion mode works on opaque images and video; Alpha mode trails a shape's coverage), with optional zoom-feedback tunnels and rainbow light-painting
Cargando shader…
Ajústalo
0.06
0.6
1
1
0
0
1
Instalación
Terminal
npx shadcn@latest add https://<tu-dominio>/r/shader-time-trail.json
Crea components/bastard/ShaderTimeTrail.tsx e instala shaders. Más opciones
Uso
Demo.tsx
1import ShaderTimeTrail from '@/components/bastard/ShaderTimeTrail';23export default function Demo() {4 return (5 <ShaderTimeTrail6 trailSource="motion"7 motionThreshold={0.06}8 trailLength={0.6}9 diffusion={1}10 trailOpacity={1}11 trailBlend="normal"12 driftX={0}13 driftY={0}14 zoom={1}15 tintMode="none"16 />17 );18}
Props
| Prop | Tipo | Por defecto | Descripción |
|---|---|---|---|
| trailSource | 'motion' | 'alpha' | "motion" | Source |
| motionThreshold | number | 0.06 | Motion Threshold |
| trailLength | number | 0.6 | Trail Length |
| diffusion | number | 1 | Diffusion |
| trailOpacity | number | 1 | Trail Opacity |
| trailBlend | 'normal' | 'add' | 'screen' | 'multiply' | 'overlay' | 'softLight' | 'hardLight' | 'darken' | 'lighten' | 'colorDodge' | 'colorBurn' | 'linearBurn' | 'difference' | 'exclusion' | 'hue' | 'saturation' | 'color' | 'luminosity' | "normal" | Blend |
| driftX | number | 0 | Drift X |
| driftY | number | 0 | Drift Y |
| zoom | number | 1 | Zoom |
| tintMode | 'none' | 'color' | 'rainbow' | "none" | Tint Mode |
Aquí aparecen las props ajustables. El componente acepta más: revisa el código fuente.
Créditos
Basado en Time Trail · Shaders.com, adaptado para BSTRD UI.Licencia: MIT. Puedes usarlo, modificarlo y venderlo, conservando el aviso de copyright que va dentro del archivo.