Gathering detailed insights and metrics for react-fast-marquee-test
Gathering detailed insights and metrics for react-fast-marquee-test
A lightweight React component that utilizes the power of CSS animations to create silky smooth marquees.
npm install react-fast-marquee-test
Typescript
Module System
Node Version
NPM Version
66.1
Supply Chain
89.4
Quality
74.9
Maintenance
100
Vulnerability
100
License
TypeScript (44.82%)
JavaScript (35.81%)
SCSS (19.37%)
Total Downloads
471
Last Day
1
Last Week
3
Last Month
11
Last Year
147
79 Commits
1 Branches
1 Contributors
Minified
Minified + Gzipped
Latest Version
1.0.1
Package Id
react-fast-marquee-test@1.0.1
Unpacked Size
26.07 kB
Size
7.55 kB
File Count
7
NPM Version
8.3.0
Node Version
14.16.0
Publised On
14 Dec 2021
Cumulative downloads
Total Downloads
Last day
0%
1
Compared to previous day
Last week
200%
3
Compared to previous week
Last month
83.3%
11
Compared to previous month
Last year
56.4%
147
Compared to previous year
29
React Fast Marquee is a lightweight React component that utilizes the power of CSS animations to create silky smooth marquees.
Check out the demo here and play around with some sample marquees.
If you're using npm
, in the command prompt run:
1npm install react-fast-marquee --save
If you're using yarn
, run:
1yarn add react-fast-marquee
To use the component, first import Marquee
into your file:
1import Marquee from "react-fast-marquee";
Then wrap the <Marquee>
tags around any component or text you'd like to slide.
1<Marquee> 2 I can be a React component, multiple React components, or just some text. 3</Marquee>
A sample file might look like this:
1import React from "react"; 2import MyComponent from "../components/MyComponent"; 3import Marquee from "react-fast-marquee"; 4 5const App = () => ( 6 <Marquee> 7 <MyComponent /> 8 <MyComponent /> 9 <MyComponent /> 10 </Marquee> 11); 12 13export default App;
Property | Type | Default | Description |
---|---|---|---|
style | object | {} | Inline style for the container div |
className | string | "" | Name of the css class to style the container div |
play | boolean | true | Whether to play or pause the marquee |
pauseOnHover | boolean | false | Whether to pause the marquee when hovered |
pauseOnClick | boolean | false | Whether to pause the marquee when clicked |
direction | "left" or "right" | "left" | The direction the marquee is sliding |
speed | number | 20 | Speed calculated as pixels/second |
delay | number | 0 | Duration to delay the animation after render, in seconds |
loop | number | 0 | The number of times the marquee should loop, 0 is equivalent to infinite |
gradient | boolean | true | Whether to show the gradient or not |
gradientColor | Array<number> of length 3 | [255, 255, 255] | The rgb color of the gradient as an array of length 3 |
gradientWidth | number or string | 200 | The width of the gradient on either side |
children | ReactNode | null | The children rendered inside the marquee |
No vulnerabilities found.
No security vulnerabilities found.