npm install --save react-scroll-text
import React, { Component } from 'react'
import ScrollText from 'react-scroll-text'
class Example extends Component {
render () {
return (
<ScrollText>
this'a a very long text...
</ScrollText>
)
}
}
Available props for component:
Name | Descr | Default |
---|---|---|
speed |
Set the animation speed (0-100) | 100 |
<ScrollText speed={100}>
this'a a very long text...
</ScrollText>
MIT © Cody Chan