
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
react-html-rotator2
Advanced tools
Simple React component for rotating text.
npm install react-text-rotator --save
import React from 'react';
import ReactTextRotator from 'react-text-rotator';
const content = [
{
text: 'We shall fight on the beaches.',
className: 'classA',
animation: 'fade',
},
{
text: 'We shall fight on the landing grounds.',
className: 'classB',
animation: 'fade',
},
{
text: 'We shall fight in the fields and in the streets.',
className: 'classC',
animation: 'fade',
},
{
text: 'We shall fight in the hills.',
className: 'classD',
animation: 'fade',
},
{
text: 'We shall never surrender...',
className: 'classE',
animation: 'fade',
},
];
const MyComponent = () => (
<div>
<h1>Churchill Speech</h1>
<ReactTextRotator
content={content}
time={5000}
startDelay={2000}
/>
</div>
);
| Name | Type | Required | Default | Obs |
|---|---|---|---|---|
| content | Array | True | Array of content shape (see bellow) | |
| time | Number | False | 2500 | Time in milliseconds |
| startDelay | Number | False | 250 | Wait before the first content (milliseconds) |
| transitionTime | Number | False | 500 | Time in milliseconds |
Content shape
| Name | Type | Required | Default | Obs |
|---|---|---|---|---|
| text | String | True | Text to be shown | |
| className | String | False | Class name for each span | |
| animation | String | False | 'fade' | Pre-defined animation for the content (only fade is available) |
Clone git clone https://github.com/claytonmarinho/react-text-rotator.git.
Running npm install in the components's root directory will install everything you need for development.
npm start will run a development server with the component's demo app at http://localhost:3000 with hot module reloading.npm test will run the tests once.
npm run test:coverage will run the tests and produce a coverage report in coverage/.
npm run test:watch will run the tests on every change.
npm run build will build the component for publishing to npm and also bundle the demo app.
npm run clean will delete built resources.
FAQs
Simple React component for rotating text
We found that react-html-rotator2 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.