速度滚动
速度滚动
安装
用法
import { VelocityScroll } from "@/components/magicui/scroll-based-velocity";
<VelocityScroll>Scroll Based Velocity</VelocityScroll>
属性
属性 | 类型 | 默认值 | 描述 |
---|---|---|---|
className | string | - | 要应用于组件的类名 |
children | ReactNode | - | 要动画化的内容 |
defaultVelocity | number | 5 | 文本的基础滚动速度 |
numRows | number | 2 | 要动画化的行数 |