react-scroll-text

>

Downloads
102
Stars
1
Committers
3

react-scroll-text

Install

npm install --save react-scroll-text

Usage

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>
    )
  }
}

Props

Available props for component:

Name Descr Default
speed Set the animation speed (0-100) 100

Example with props

<ScrollText speed={100}>
   this'a a very long text...
</ScrollText>

License

MIT © Cody Chan