Marquesina cuya velocidad depende de lo rápido que hagas scroll.
npx shadcn@latest add https://reactbits.dev/r/ScrollVelocity-TS-TW
Úsalas en titulares y mensajes clave. Una por pantalla: si todo se mueve, nada destaca.
| Prop | Tipo | Por defecto |
|---|---|---|
| scrollContainerRef | React.RefObject<HTMLElement> | undefined |
| texts | React.ReactNode[] | [] |
| velocity | number | 100 |
| className | string | "" |
| damping | number | 50 |
| stiffness | number | 400 |
| numCopies | number | 6 |
| velocityMapping | { input: number[]; output: number[] } | { input: [0, 1000], output: [0, 5] } |
| parallaxClassName | string | "parallax" |
| scrollerClassName | string | "scroller" |
| parallaxStyle | React.CSSProperties | undefined |
| scrollerStyle | React.CSSProperties | undefined |