npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

react-marquee-master

v1.4.5

Published

React component to allow you to create a vertically scrolling marquee

Downloads

554

Readme

react-marquee-master

Simple component to create a scrolling marquee. The marquee HTML tag has been discontinued, but sometimes you just have to add some flare to your site! Build with typescript to provide typings out of the box.

Version js-standard-style npm download semantic-release

Demo

Simple scroll:

Reverse it, and speed it up!

Or horizontal!

Maintainers

strongui Active maintainer - accepting PRs and doing minor testing, fixing issues or doing active development.

Installation

npm install react-marquee-master

or

yarn add react-marquee-master

Usage

Using NPM

1 . Require react-marquee-master after installation

import Marquee from 'react-marquee-master';

2 . Add your Marquee element

<Marquee marqueeItems={marqueeItems} />

Standalone

You can import node_modules/react-marquee-master/dist/index.js into your page. Please make sure that you have already imported react and react-dom into your page.

Options

Notes:

  • The marqueeItems property just needs to be an array. You can pass strings or components.
  • You must define either a height or minHeight for the marquee, because the marquee elements is absolutley positioned and will not grow the marquee container on its own.
  • All other props are optional, and are there to allow you to customize the marquee to your liking.
  • The component comes without any styles or style sheets. It's up to your to style the marquee any way you want. All this component will do is handle the animations for you. I did not want to force any arbitrary styles on you or grow the size of the package by importing additional libraries.

| Prop | Type | Values | Default | Description | | ------------------------- | -------------------------- | --------------------- | ------- | -------------------------------------------------------------- | | delay | number | 0-99999 | 40 | Delay of the animation. Lower number speeds up the scroll. | | direction | string | up, right, down, left | up | Direction of the scroll. | | height | number | 0-99999 | | The fixed height of the marquee | | inverseMarqueeItems | boolean | true | false | Reverse the marquee array. Useful when scrolling down. | | marqueeClassName | string | | | Class to apply to marquee element. | | marqueeContainerClassName | string | | | Class to apply to marquee container element. | | marqueeItemClassName | string | | | Class to apply to each marquee element. | | marqueeItemClassName | string | | | Class to apply to each marquee element. | | marqueeItems | Array<string|JSX.Element> | [] | [] | The text / Components to display. | | minHeight | number | 0-99999 | | More dynamic sizing option with a minimum size that will grow. |

To test locally in a separate app that imports this library

  1. Open console at root of react-marquee-master
  2. run npm link ../YOUR_APP_NAME/node_modules/react
  3. run npm link
  4. In YOUR_APP_NAME run npm link react-marquee-master
  5. Now in YOUR_APP_NAME you can import this module (import Marquee, { IMarqueeProps } from 'react-marquee-master';)
  6. npm start (rollup to update react-marquee-master)

To release

np

Contributing

I welcome your contribution! Fork the repo, make some changes, submit a pull-request!

License

License