
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
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 by default.
Marquee generates a css class for every instance with specific styles and hence it requires a id
value to passed in.
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 254 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 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
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.