react-marquease
TypeScript icon, indicating that this package has built-in type declarations

0.1.6 • Public • Published

🐛 react-marquease

npm NPM npm Coveralls github codecov CircleCI Snyk Vulnerabilities for GitHub Repo

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 - The px value to offset the initial scroll position of the Marquee
  • reverse - Reverse the direction of the Marquee. (Scroll left to right)
  • pause - Pause Marquee scrolling
  • speed - Modifier applied to offset position as Marquee scrolls through the viewport. (Default: 1)
  • ref - References the outermost div of the component.
  • ...rest - Applied to outermost div of the component.

License

MIT © RyanHefner

Readme

Keywords

none

Package Sidebar

Install

npm i react-marquease

Weekly Downloads

5

Version

0.1.6

License

MIT

Unpacked Size

34.5 kB

Total Files

13

Last publish

Collaborators

  • ryanhefner