Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
react-final-marquee
Advanced tools
Easy way to use marquee for react
npm install react-final-marquee
# or
yarn add react-final-marquee
// App.js
import ReactFinalMarquee from "react-final-marquee";
const VertialMarquee = () => {
return (
<div className="App">
<ReactFinalMarquee
className="marquee-customer-class"
direction="leftToRight"
speed="30"
space="20px"
repeat="5"
>
Lorem Ipsum is simply dummy text of the printing and typesetting
industry.
</ReactFinalMarquee>
</div>
);
};
const HorizontalMqrquee = () => {
return (
<div className="App">
<ReactFinalMarquee
className="marquee-customer-class"
direction="topToBottom"
speed="30"
space="20px"
repeat="5"
>
Lorem Ipsum is simply dummy text of the printing and typesetting
industry.
</ReactFinalMarquee>
</div>
);
};
Prop | Type | Default | Description |
---|---|---|---|
height | Number / String | 30px | The height of the container div |
style | CSSProperties | {} | Inline style for the container div |
className | String | "" | Class name to style the container div |
paused | Boolean | false | The property specifies whether the animation is running or paused |
pauseOnHover | Boolean | true | Whether to pause the marquee when hovered |
direction | leftToRight / rightToLeft / topToBottom / bottomToTop | rightToLeft | The direction the marquee is sliding |
speed | Number / String | 20 | Speed calculated as pixels/second |
space | Number / String | 0 | Each loop item sapces |
repeat | Number / String | 2 | Number of repeat text |
textColor | String / null | null | Text color |
bgColor | String /null | null | Container Background color |
position | start /center / end | start | Marquee position |
FAQs
Easy way to use marquee text for React
The npm package react-final-marquee receives a total of 27 weekly downloads. As such, react-final-marquee popularity was classified as not popular.
We found that react-final-marquee demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.