A Text Ellipsis Component for React
Actively maintained. Welcome to PR/Issue. 🤡👉 Demo 👈🤡
Install
npm install --save ellipsus
Usage
import Ellipsus, { Flyby } from 'ellipsus' // in your render() or whatever a really long long long text......... // or with props a really long long long text......... // Flyby text a really long long long text.........
Props
Name | Type | Default | Description |
---|---|---|---|
repeat | number |
Infinity | How many times you want your string move back and forth |
duration | number |
2000 | Duration of animation, milliseconds |
interval | number |
3000 | Interval between each animation, milliseconds |