Installation
Usage
showLineNumbers
showLineNumbers
Components
ScrollVelocityContainer
Wrapper component that provides scroll velocity context to child rows.| Prop | Type | Default | Description |
|---|---|---|---|
children | React.ReactNode | - | The ScrollVelocityRow components. |
className | string | - | Additional class names for the container. |
| …rest | React.HTMLAttributes<HTMLDivElement> | - | All standard div HTML attributes are supported. |
ScrollVelocityRow
A row that moves based on scroll velocity.| Prop | Type | Default | Description |
|---|---|---|---|
children | React.ReactNode | - | The content to scroll (will be duplicated). |
baseVelocity | number | 5 | Base scrolling speed. |
direction | 1 | -1 | 1 | Direction of scroll (1 for right, -1 for left). |
className | string | - | Additional class names for the row. |
| …rest | React.HTMLAttributes<HTMLDivElement> | - | All standard div HTML attributes are supported. |
Examples
Multiple Rows
showLineNumbers
Independent Row (without container)
showLineNumbers