Velocidad de scroll
NuevoMITFilas de texto que corren y se aceleran con la velocidad del scroll.
Diseño · Software · Deep tech ·
Sin pedigrí · Con oficio ·
Ajústalo
3
Instalación
Terminal
npx shadcn@latest add https://<tu-dominio>/r/velocidad-de-scroll.json
Crea components/bastard/ScrollVelocityContainer.tsx e instala motion. Más opciones
Uso
Demo.tsx
1import { ScrollVelocityContainer, ScrollVelocityRow } from '@/components/bastard/ScrollBasedVelocity';23export default function Demo() {4 return (5 <ScrollVelocityContainer>6 <ScrollVelocityRow baseVelocity={3}>Diseño · Software · Deep tech · </ScrollVelocityRow>7 <ScrollVelocityRow baseVelocity={3} direction={-1}>Sin pedigrí · Con oficio · </ScrollVelocityRow>8 </ScrollVelocityContainer>9 );10}
Props
| Prop | Tipo | Por defecto | Descripción |
|---|---|---|---|
| baseVelocity | number | 3 | Velocidad |
Aquí aparecen las props ajustables. El componente acepta más: revisa el código fuente.
Créditos
Basado en Scroll Based Velocity · Magic UI, adaptado para BSTRD UI.Licencia: MIT. Puedes usarlo, modificarlo y venderlo, conservando el aviso de copyright que va dentro del archivo.