🐛 react-marquease
HTML <marquee>
s, the React way (with some handy control features).
Install
Via npm
npm install -S react-marquease
Via Yarn
yarn add react-marquease
How to use
import Marquee from 'react-marquease'
const ExampleComponent = () => (
<Marquee>
<p>Scrolly text, moving through, my browser window, moving smooth.<p>
</Marquee>
)
Props
-
defaultOffset
- Thepx
value to offset the initial scroll position of theMarquee
-
reverse
- Reverse the direction of theMarquee
. (Scroll left to right) -
pause
- PauseMarquee
scrolling -
speed
- Modifier applied tooffset
position asMarquee
scrolls through the viewport. (Default:1
) -
ref
- References the outermostdiv
of the component. -
...rest
- Applied to outermostdiv
of the component.