You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

react-malarquee

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-malarquee

A more flexible <Marquee> component for React

0.0.13
latest
Source
npmnpm
Version published
Weekly downloads
256
-1.16%
Maintainers
1
Weekly downloads
 
Created
Source

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
  • hoverToPause
  • fill
  • rate

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

Keywords

react

FAQs

Package last updated on 27 Mar 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.