Socket
Socket
Sign inDemoInstall

ks-unlimited-marquee

Package Overview
Dependencies
20
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ks-unlimited-marquee

ks-unlimited-marquee React component


Version published
Weekly downloads
3
Maintainers
1
Created
Weekly downloads
 

Readme

Source

ks-unlimited-marquee

A unidirectional scrollable React component.

Feature

  • Unlimited scrolling
  • Mouse events
  • Tooltip

Install

npm install ks-unlimited-marquee

Usage

import UnlimitedMarquee from 'ks-unlimited-marquee';


class Demo extends Component {
  render() {

    return (
      const content = (
        <ul>
          <li>新闻1</li>
          <li>新闻2</li>
          <li>新闻3</li>
          <li>新闻4</li>
          <li>新闻5</li>
          <li>新闻6</li>
          <li>新闻7</li>
          <li>新闻8</li>
          <li>新闻9</li>
          <li>新闻10</li>
          <li>新闻11</li>
        </ul>
      );
      <div>
        <UnlimitedMarquee
          content={content}
        />
      </div>
    )
  }
}

render(<Demo/>, document.querySelector('#demo'));

Example

https://ttop5.github.io/ks-unlimited-marquee/demo/dist

API

NameTypeDefaultDescriptionisRequired
speedNumber20scrolling speed, 0 < speed <= 1000false
contentelementelementtrue

Development

git clone https://github.com/ttop5/ks-unlimited-marquee.git
cd ks-unlimited-marquee
npm install
npm start

License

ks-unlimited-marquee is released under the MIT license.

Keywords

FAQs

Last updated on 19 Sep 2017

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