
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
react-marquee-line
Advanced tools
React Marquee Line is a react component for running item(s) of an array of any length automatically, infinitely within one line, with configurable gap, running speed, styles.
React Marquee Line is a react component for running item(s) of an array of any length automatically, infinitely within one line, with configurable gap, running speed, styles.
<Marquee
list: [], // optional, item can be either plain text or React Element
gear: 1, // optional, for speed control, available values are as following: 0.5, 1, 1.5, 2, 2.5
viewBoxStyle: {width: '100%', top: 0, left: 0, backgrounColor: '#ccc'}, // optional, for override the default styling of the visible area of this marquee
itemStyle: {color: 'red'}, // optional, for override the default styling of item(s)
/>
default values of props:
Marquee.defaultProps = {
list: [].
gear: 1,
viewBoxStyle: {
width: '100%',
height: '30px',
color: '#000000',
border: '1px solid #ccc'
},
itemStyle: {}
}
Using npm:
npm install react-marquee-line
Using yarn:
yarn add react-marquee-line
import Marquee from 'react-marquee-line'
// prep for content of array to run
const template = <span onClick={() => {console.log('clicked')}}>click me</span>
const list = [
'this is the first item',
template
]
<Marquee list={list} gear={1.5} viewBoxStyle={{border: "0px", backgroundColor: "rgba(0,0,0,0.7)"}} />
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.
The npm package react-marquee-line receives a total of 68 weekly downloads. As such, react-marquee-line popularity was classified as not popular.
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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.