Socket
Socket
Sign inDemoInstall

react-css-marquee

Package Overview
Dependencies
8
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-css-marquee

The classic <marquee> in React and CSS


Version published
Maintainers
1
Install size
10.5 kB
Created

Readme

Source

React CSS Marquee

Build Status TypeScript

Bringing back that sweet scrolling HTML Marquee element. In React with CSS @keyframes for animations. Uses hooks to detect window size so React >16.8.

How to

Install

yarn add react-css-marquee

Use

import Marquee from 'react-css-marquee'

...

<Marquee text="Your scrolling text here..." />

Styling

Pass inline styles with the styles prop or use the CSS default classes react-marquee__container and react-marquee__text. You can also pass your own CSS namespace.

Props

PropExample
text: stringYour marquee text
direction: stringleft | right
size: number200
styles: objectInline CSS
speed: number5
namespace: stringPass own CSS namespace

FAQs

Last updated on 21 Mar 2020

Did you know?

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc