Socket
Socket
Sign inDemoInstall

react-drag-marquee

Package Overview
Dependencies
8
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-drag-marquee

a draggable marquee component


Version published
Weekly downloads
7
increased by16.67%
Maintainers
1
Install size
4.74 kB
Created
Weekly downloads
 

Readme

Source

React-drag-marquee

A simple react marquee component

Install with npm:

npm install react-drag-marquee

Demo

Demo Link

Example

import React, { Component} from 'react';
import Marquee from 'react-drag-marquee';

class App extends Component {
  render() {
    return (
      <Marquee
        text="Lorem ipsum dolor sit amet, consectetur adipisicing elit. Qui ea laboriosam molestiae corrupti eligendi sed error dolore consequuntur maxime saepe. Nam corrupti velit autem incidunt, aut atque mollitia ipsa obcaecati."
      />
    )
  }
}

Props

text

the marquee text

  • Type: string
  • Default: ''

freq

the interval time(millisecond) for the marquee

  • Type: number
  • Default: 15

offset

the move offset(px) for every interval time.

  • Type: number
  • Default: 1

Keywords

FAQs

Last updated on 21 Dec 2019

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