
Security News
/Research
npm Phishing Email Targets Developers with Typosquatted Domain
A phishing attack targeted developers using a typosquatted npm domain (npnjs.com) to steal credentials via fake login pages - watch out for similar scams.
react-simple-rotating-text
Advanced tools
A simple rotating animation text component for react apps
npm install --save react-simple-rotating-text
import React, { Component } from 'react'
import { RotatingText } from 'react-simple-rotating-text'
import 'react-simple-rotating-text/dist/index.css'
class Example extends Component {
render() {
return <RotatingText texts={['hello', 'world']} />
}
}
import React, { Component } from 'react'
import { RotatingText } from 'react-simple-rotating-text'
import 'react-simple-rotating-text/dist/index.css'
class Example extends Component {
render() {
return <RotatingText texts={['hello', 'world']}
colors={['red', 'blue']}
/>
}
}
import React, { Component } from 'react'
import { RotatingText } from 'react-simple-rotating-text'
import 'react-simple-rotating-text/dist/index.css'
class Example extends Component {
render() {
return <RotatingText texts={['hello', 'world']}
backgroundColors={['red', 'blue']}
/>
}
}
import React, { Component } from 'react'
import { RotatingText } from 'react-simple-rotating-text'
import 'react-simple-rotating-text/dist/index.css'
class Example extends Component {
render() {
return <RotatingText texts={['hello', 'world']}
animation='fade'
/>
}
}
import React, { Component } from 'react'
import { RotatingText } from 'react-simple-rotating-text'
import 'react-simple-rotating-text/dist/index.css'
class Example extends Component {
render() {
return <RotatingText texts={['hello', 'world']}
animation='slide'
direction='vertical'
/>
}
}
import React, { Component } from 'react'
import { RotatingText } from 'react-simple-rotating-text'
import 'react-simple-rotating-text/dist/index.css'
class Example extends Component {
render() {
return <RotatingText texts={['hello', 'world']}
animation='scale'
/>
}
}
propery | description | required | default | allowed values |
---|---|---|---|---|
texts | An array of strings | true | ||
colors | An array of strings of colors | false | hex code of color | |
backgroundColors | An array of strings of background colors | false | hex code of color | |
duratrion | duration of the animation | false | 2.5s | number |
animation | name of the animation | false | fade | fade, slide, scale |
direction | direction of animation | false | vertical | horzontal or vertical |
className | Custom classes for styling | false |
MIT © dilpreetsio
FAQs
> A simple rotating animation text component for react apps
The npm package react-simple-rotating-text receives a total of 60 weekly downloads. As such, react-simple-rotating-text popularity was classified as not popular.
We found that react-simple-rotating-text 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.
Security News
/Research
A phishing attack targeted developers using a typosquatted npm domain (npnjs.com) to steal credentials via fake login pages - watch out for similar scams.
Security News
Knip hits 500 releases with v5.62.0, refining TypeScript config detection and updating plugins as monthly npm downloads approach 12M.
Security News
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.