A
Install it via npm or yarn:
npm install --save react-text-marquee
yarn add react-text-marquee
import React, { Component } from 'react';
import Marquee from 'react-text-marquee';
import './App.css';
class App extends Component {
render() {
return (
<div className="App">
<Marquee text="Wow this is really quite a long message but it can be handled by this component just fine" />
</div>
);
}
}
The text displayed in marquee.
""
By default, only hover makes the marquee move.
false
Whether or not loop the marquee.
false
The leading waiting time for the marquee to move.
0
The trailing waiting time for the marquee to start over.
0
MIT