# react-jason-carousel

> a carousel component

Latest version **1.0.1** (published 2019-10-28) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2019-10-28 |
| First published | 2019-10-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | jason gu |
| Maintainers | jason.gu |
| Keywords | carousel, slide |

## Links

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

## Alternatives

- [adhdev](https://npm.io/package/adhdev.md) — 11.1K weekly downloads
- [react-slide-button](https://npm.io/package/react-slide-button.md) — 310 weekly downloads
- [better](https://npm.io/package/better.md) — 42 weekly downloads
- [react-native-swipe-image](https://npm.io/package/react-native-swipe-image.md) — 22 weekly downloads
- [nl.fokkezb.pulltorefresh](https://npm.io/package/nl.fokkezb.pulltorefresh.md) — 11 weekly downloads

## Recent versions

- 1.0.1 (latest) — 2019-10-28
- 1.0.0 — 2019-10-27

## README

# react-carousel
A  carousel component for react project
# demo
![slider](https://user-images.githubusercontent.com/48550619/67662019-88188200-f99d-11e9-8075-8f810153b9b2.gif)

# usage
``` javascript
const items = [   
      {     
        src: require('./images/demo1.jpg'),
        alt: 'images-1',      
      },     
      {
        src: require('./images/demo2.jpg'),
        alt: 'images-2',
      },     
      {
        src: require('./images/demo3.jpg'),
        alt: 'images-3',
      },   #图片数组，有几张图片放几张         
    ];  
React.render(
  <Slider
    items={items}
    speed={1.5}       #轮播切换图片的速度
    delay={3}         #自动轮播时候停留的时间
    pause={true}      #鼠标放上图片是否停止自动轮播
    autoplay={true}   #是否自动轮播
    dots={true}       #是否需要下面的轮播点点位
    arrows={true}     #是否需要左右点击箭头
  />,
  
  document.getElementById("root")
);
```

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