0.0.13 • Published 6 years ago

react-malarquee v0.0.13

Weekly downloads
225
License
MIT
Repository
github
Last release
6 years ago

react-malarquee

Overview

react-malarquee is a flexible <Marquee> tag replacement for React. It uses state-based animation, rather than css-animation.

The Marquee has two parts: the container and the content. The container an unmoving block, acting as a sort of billboard to define the space in which the animating content can move.

Props

children

string | components Provide the content you would like to animate within the Marquee as children. Marquee accepts any mix of html, strings, and components. Style content as inline, inline-block, etc. if you want it to remain on a single line.

Default value: null

<Malarquee>This string will animate<\/Malarquee>
// or
<Malarquee children="So will this string" />
// or
<Malarquee><span>We Are </span><span>Inline, so we </span><span>don't stack</span><\/Malarquee>

hoverToPause

boolean If true, pauses the Marquee's animation when the container is hovered over Default value: false

fill

boolean If true, repeats the marquee content such that the line is continuously filled. Use padding or margins to create spaced between the coppies. Default value: true

Rate

number The rate at which the content moves in pixels per second (px / sec) Default value: 100

0.0.13

6 years ago

0.0.12

6 years ago

0.0.11

6 years ago

0.0.10

6 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago