Socket
Socket
Sign inDemoInstall

dynamic-marquee-react

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dynamic-marquee-react

A `<Marquee />` component for React.


Version published
Weekly downloads
131
decreased by-11.49%
Maintainers
1
Weekly downloads
 
Created
Source

Dynamic Marquee React

A <Marquee /> component for React.

Uses "dynamic-marquee" under the hood.

Features:

  • You can change the rate on the fly.
  • Direction can either be up/down or right/left.
  • Width/height of items and container is allowed to change.

Demo

Open in StackBlitz

View the code in "demo".

Installation

npm install --save dynamic-marquee-react

Usage

import React from 'react';
import { Marquee } from 'dynamic-marquee-react';

export default function MyMarquee() {
  return (
    <Marquee>
      <div>Item 1</div>
      <div>Item 2</div>
      <div>Item 3</div>
    </Marquee>
  );
}

There are also the following props:

  • rate: pixels/s. Default: -25
  • upDown: Switch the direction to up/down instead of left/right. If this is enabled make sure your container has a height set. Default: false
  • startOnScreen: Start with the marquee full of items. Default: false

Keywords

FAQs

Package last updated on 12 Mar 2023

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

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc