Security News
Namecheap Takes Down Polyfill.io Service Following Supply Chain Attack
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
react-opacity-carousel
Advanced tools
Readme
Powerful, lightweight and fully customizable opacity carousel component for React apps.
npm install react-opacity-carousel --save-dev
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import { OpacityCarousel } from 'react-opacity-carousel';
class DemoCarousel extends Component {
render() {
return (
<OpacityCarousel duration={4000} interval={20} fade="in-out">
<div>
<img src="content/a.jpeg" />
<p className="label">Title A</p>
</div>
<div>
<img src="content/b.jpeg" />
<p className="label">Title B</p>
</div>
<div>
<img src="content/c.jpeg" />
<p className="label">Title C</p>
</div>
</OpacityCarousel>
);
}
});
ReactDOM.render(<DemoCarousel />, document.querySelector('.opac-carousel'));
Attributes | Type | Default | Description |
---|---|---|---|
duration | number | 4000 | animation duration for the list item in miliseconds |
interval | number | 20 | interval duration for list item's opacity state update |
fade | string | in-out | type of fade effect on list item. Possible values are 'in', 'out','in-out' |
=======================
=======================
=======================
Please see LICENSE for details.
FAQs
Opacity Carousel with Opacity Animation on List Items
The npm package react-opacity-carousel receives a total of 1 weekly downloads. As such, react-opacity-carousel popularity was classified as not popular.
We found that react-opacity-carousel 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
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.
Security News
A JavaScript library maintainer is under fire after merging a controversial PR to support legacy versions of Node.js.