Text that rolls vertically on hover.
can be used to add a more dynamic touch to your website.
npm run nexponent add rolling-text
Prop | Type | Default | Description |
---|---|---|---|
text | String | - | The text to roll and display. |
altText | String | - | Alternative text to display when the text is rolled. |
className | String | - | Additional classes to apply to the component. |
direction | String ( up | down ) | up | The direction in which the text should roll. |
lineHeight | Number ( 0 <= x <= 1 ) | 0.8 | The line height of the text. |
Credit to @anuja-rahul
Special thanks to @tomisloading