# react-flexible-carousel

> react flexible carousel let you can easily control with style, rwd, lifecycle and dynamic path.

Latest version **1.2.6** (published 2017-02-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-flexible-carousel
pnpm add react-flexible-carousel
yarn add react-flexible-carousel
bun add react-flexible-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.2.6 |
| Published | 2017-02-14 |
| First published | 2016-11-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 14 |
| Author | Whien_Liou |
| Maintainers | whien_liou |
| Keywords | react, carousel |

## Links

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

## Dependencies (1)

- [eslint](https://npm.io/package/eslint.md) ^3.10.2

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.2.6 (latest) — 2017-02-14
- 1.0.0-beta.2 (beta) — 2016-11-14
- 1.2.5 — 2016-12-20
- 1.2.0 — 2016-11-24
- 1.1.3 — 2016-11-22
- 1.1.2 — 2016-11-20
- 1.1.0 — 2016-11-16
- 1.0.0 — 2016-11-14
- 1.0.0-beta.1 — 2016-11-14

## README

# React Flexible Carousel
⭐️  Flexible image carousel and respond on any device 💻  🖥  👀￼￼￼￼￼

# Simple Example

```javascript
import React, { Component } from 'react'
import { Carousel } from 'react-flexible-carousel'
class SimpleExample extends Component {
  render() {
    const urls = [
      'http://images.freeimages.com/images/previews/a6c/window-7-1547198.jpg',
      'http://images.freeimages.com/images/previews/5f7/hunter-s-bend-1316926.jpg',
      'http://images.freeimages.com/images/previews/423/burger-1320282.jpg',
      'http://images.freeimages.com/images/previews/f44/strawberry-cake-2-1323179.jpg',
      'http://images.freeimages.com/images/previews/5b0/rubik-s-cube-1-1424892.jpg',
    ]
    return (
      <Carousel
        urls={ urls }
        use_thumbs={ true }
        listHeight={ 200 }
      />
    )
  }  
}
export default SimpleExample
```

# Example page
[Demo Page](https://cafemap.github.io/react-flexible-carousel/)

# Installation

```command
> npm install react-flexible-carousel --save
```

# USE

[examples](https://github.com/CafeMap/react-flexible-carousel/tree/master/examples)

# PROGRESS

- [x] handle wrapper
  - [x] custom wrapper style
- [x] handle list slider
  - [x] handle list auto play
  - [x] handle custom image
    - [x] use image url data
    - [x] use custom component
- [x] handle thumbs
  - [ ] custom thumbs position
    - [ ] top
    - [x] bottom
    - [ ] left
    - [ ] right
  - [x] thumbs item custom style
  - [x] thumbs per page
  - [x] start action ID
- [x] handle arrow
  - [x] handle arrow use
  - [x] handle custom arrow component
- [x] handle lazy load
- [x] handle respond design
  - [x] with parent element
- [x] handle touch mode
- [ ] handle hook event
  - [ ] handle before, after bind event
    - [x] handle wrapper mouse over, leave event
    - [ ] ~~handle arrow mouse click~~
    - [x] handle actionID change
    - [ ] handle thumbs item click
    - [ ] ~~handle thumbs item change~~
- [ ] handle fancy box show ( click list image and show the bigger one )

# Props

|    Property    | Type |          Description          | Default | Done |
| -------------  | ---- |          -----------          | ------- | ---- |
|urls (required)|array|An array of urls|null|Done|
|listWidth|int|carousel image width size|300|Done|
|listHeight|int|carousel image height size|400|Done|
|auto_play|boolean||false|Done|
|auto_play_speed|int|speed setting for auto play|1000|Done|
|use_arrow|boolean||false|Done|
|use_left_arrow|ReactElement|custom left arrow ReactElement|null|Done|
|use_right_arrow|ReactElement|custom right arrow ReactElement|null|Done|
|use_thumbs|boolean|||Done|
|touch_mode|boolean||control touch mode by yourself|Done|
|thumbsPerPage|int||5|Done|
|lazy_load|boolean||true|Done|
|styleEase|string|use css3 ease style e.g. "ease-in-out", "ease-in" etc..|ease-out|Done|
|custom_styles|object|custom styles for carousel component. e.g. "wrapper", "list", "thumbs", "thumbs_item"||Done|
|custom_thumbs({ setting, handler })|ReactElement|[see example](https://github.com/CafeMap/react-flexible-carousel/tree/master/examples/components)||Done|
|custom_lists({ urls, width, height })|ReactElement|[see example](https://github.com/CafeMap/react-flexible-carousel/tree/master/examples/components)||Done|
|start_actionID|int||0|Done|

# Events
|    Property    | Type |          Description          | Done |
| -------------  | ---- |          -----------          | ------- |
|beforeWrapperMouseOver(actionID, actionUrl)|function|This callback fires before wrapper mouse over|Done|
|afterWrapperMouseOver(actionID, actionUrl)|function|This callback fires after wrapper mouse over|Done|
|beforeWrapperMouseLeave(actionID, actionUrl)|function|This callback fires before wrapper mouse leave|Done|
|afterWrapperMouseLeave(actionID, actionUrl)|function|This callback fires after wrapper mouse leave|Done|
|beforeActionIDChange(preID)|function|This callback fires before actionID changed|Done|
|afterActionIDChange(nextID)|function|This callback fires after actionID changed|Done|

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