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-marquee-line
Advanced tools
React Marquee Line is a react component that can be used for creating a horizontal-scrolling-board-like effect, or a vertically fade in and fade up effect.
React Marquee Line is a react component that can be used for creating a horizontal-scrolling-board-like effect, or a vertically fade in and fade up effect.
coming soon... I promise.
Using npm:
npm install react-marquee-line
Using yarn:
yarn add react-marquee-line
Marquee
import Marquee from 'react-marquee-line';
import Marquee from 'react-marquee-line'
// create an react element that has onClick handler, sorry for the long name
const someReactElemYouCanClick = <span>
<a href="https://codesandbox.io">Click me </a> for more details
</span>
// set a list your want it to run
const list = [
'the 1st running item',
someReactElemYouCanClick,
'the 2rd running item'
]
// pass the list to Marquee, you are good to go
<Marquee list={list}/>
import Marquee from 'react-marquee-line'
// create an react element that has onClick handler, sorry for the long name
const someReactElemYouCanClick = <span>
<a href="https://codesandbox.io">Click me </a> for more details
</span>
// set a list your want it to run
const list = [
'the 1st running item',
someReactElemYouCanClick,
'the 2rd running item'
]
// pass the list to Marquee, and set `direction`, easy-peasy
<Marquee list={list} direction='vertical'/>
<Marquee />
properties name | descriptionn | type | default value | belongs to which direction |
---|---|---|---|---|
list | the list whose items you want them to run | Array | [] | both |
direction | to specify which direction you want marquee to run, available values: 'horizontal', 'vertical' | String | 'horizontal' | both |
lines | vertical only, specify how many lines of item you want to show at one time | Number | 1 | vertical |
gear | horizontal only, the horizontal running speed control for marquee, available values are: 1, 1.5, 2, 2.5 | Number | 1.5 | horizontal |
<Marquee />
?Good chance you need this, and you should actually, 'cause the default styles for this <Marquee />
is way too spartan.
To overwrite its styles, you can simply import a .css file that has your ideal styles after the import of <Marquee />
.
As for the selectors specific for this <Marquee />
, you can find them at the Elements Panel of dev tool; find those classname prefixed with 'react-marquee-line-'
FAQs
React Marquee Line is a react component that can be used for creating a horizontal-scrolling-board-like effect, or a vertically fade in and fade up effect.
We found that react-marquee-line demonstrated a not healthy version release cadence and project activity because the last version was released 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.