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-light-marquee
Advanced tools
What goes around comes around! An ode to the HTML marquee element.
What goes around comes around! An ode to the HTML marquee element.
For most cases the number of elements in the dom is equal to number of children i.e it has no duplication. Duplication is only done when it is absolutely necessary.
Lightweight in bundle size and dom footprint.
Marquee fills the parent container and renders the children
npm install react-light-marquee
or
yarn install react-light-marquee
import React from "react";
import ListItem from "../ui/ListItem";
import Marquee from "react-light-marquee";
const Page = () => (
<Marquee direction="right">
<ListItem />
<ListItem />
<ListItem />
<ListItem />
</Marquee>
);
export default Page;
Marquee prop list
Property | Type | Default value | Details |
---|---|---|---|
direction | left | right | up | down | left | direction of motion |
id | string | null | unique identifier for a marquee instance on a page |
play | boolean | true | plays if true else it is paused |
speed | number | 50 | Pixel per second |
pauseOnHover | boolean | false | true pauses the animation on hover |
initialSlideIndex | number | 0 | starting slide index |
children | React.ReactNode[] | null | slides to be rendered |
In beta
FAQs
What goes around comes around! An ode to the HTML marquee element.
The npm package react-light-marquee receives a total of 293 weekly downloads. As such, react-light-marquee popularity was classified as not popular.
We found that react-light-marquee demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.