# react-infinity-carousel

> Infinity carousel for react apps ## Installation ``` npm i react-infinity-carousel --save-dev ``` ## New Version with hooks ``` https://www.npmjs.com/package/react-web-tools ``` ## Usage ``` import Carousel from 'react-infinity-carousel';

Latest version **0.3.3** (published 2019-06-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-infinity-carousel
pnpm add react-infinity-carousel
yarn add react-infinity-carousel
bun add react-infinity-carousel
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.3.3 |
| Published | 2019-06-28 |
| First published | 2019-04-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 4 |
| Unpacked size | 12 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | polanskiy |

## Links

- npm: https://www.npmjs.com/package/react-infinity-carousel
- Repository: https://github.com/polanskiy/react-infinity-carousel
- Homepage: https://github.com/polanskiy/react-infinity-carousel#readme
- Issues: https://github.com/polanskiy/react-infinity-carousel/issues
- npm.io page: https://npm.io/package/react-infinity-carousel

## Dependencies (4)

- [react](https://npm.io/package/react.md) ^16.8.6
- [react-dom](https://npm.io/package/react-dom.md) ^16.8.6
- [prop-types](https://npm.io/package/prop-types.md) ^15.7.2
- [react-scripts](https://npm.io/package/react-scripts.md) 2.1.8

## Recent versions

- 0.3.3 (latest) — 2019-06-28
- 0.3.2 — 2019-06-28
- 0.3.1 — 2019-06-27
- 0.3.0 — 2019-06-27
- 0.2.9 — 2019-06-27
- 0.2.8 — 2019-04-16
- 0.2.7 — 2019-04-05
- 0.2.6 — 2019-04-05
- 0.2.5 — 2019-04-05
- 0.2.4 — 2019-04-05
- 0.2.3 — 2019-04-05
- 0.2.2 — 2019-04-05
- 0.2.1 — 2019-04-05
- 0.2.0 — 2019-04-05
- 0.1.4 — 2019-04-05
- … 5 more at https://npm.io/package/react-infinity-carousel/versions

## README

# react-infinity-carousel
Infinity carousel for react apps
## Installation
```
npm i react-infinity-carousel --save-dev
```
## New Version with hooks
```
https://www.npmjs.com/package/react-web-tools
```
## Usage
```
import Carousel from 'react-infinity-carousel';

class App extends Component {
  render() {
    const options = {
      autoPlayInterval: 1000
    }
    return (
      <div className="App">
        <header className="App-header">
          <Carousel {...options}>
            <div style={{width: 200, height: 150, background: 'red'}}></div>
            <div style={{width: 200, height: 150, background: 'blue'}}></div>
            <div style={{width: 200, height: 150, background: 'green'}}></div>
          </Carousel>
        </header>
      </div>
    );
  }
}
```
## Options
```
const options = {
  autoPlayInterval: 1000, // default value: 3000
  arrows: false, // default value: true
  dots: false, // default value: true
  transitionDuration: .9 // default value: .5
  initialSlide: 2 // default value: 1
  className: 'yourClassName' // default value: 'carousel'
}
```

## Arrows

Arrows have classNames: 'prev' and 'next'

## Dots

Dots have className: 'dots'

---
_Source: https://npm.io/package/react-infinity-carousel · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
