
Product
Introducing Tier 1 Reachability: Precision CVE Triage for Enterprise Teams
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
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 70 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.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.