React Responsive Carousel fork from Leandro Augusto Lemos, http://leandrowd.github.io/
npm install nuorder-react-carousel

Powerful, lightweight and fully customizable carousel component for React apps.
- Responsive
- Mobile friendly
- Swipe to slide
- Mouse emulating touch
- Server side rendering
- Keyboard navigation
- Custom animation duration
- Auto play
- Custom auto play interval
- Infinite loop
- Horizontal or Vertical directions
- Supports images, videos, text content or anything you want. Each direct child represents one slide!
- Supports any flux library (use selectedItem prop to set from the app state, and onChange callback to get the new position)
- Show/hide anything (thumbs, indicators, arrows, status)
Check it out these cool demos created using storybook. The source code for each example is available here
npm install react-responsive-carousel --save``javascript
var React = require('react');
var ReactDOM = require('react-dom');
var Carousel = require('react-responsive-carousel').Carousel;
var DemoCarousel = React.createClass({ Legend 1 Legend 2 Legend 3
render() {
return (



);
}
});
ReactDOM.render(
// Don't forget to include the css in your page
//
`
| Attributes | Type | Default | Description |
| :--------- | :--: | :-----: | :----------- |
| showArrows | boolean | true | show prev and next arrows |boolean
| showStatus | | true | show index of the current item. i.e: (1/8) |boolean
| showIndicators | | true | show little dots at the bottom with links for changing the item |boolean
| showThumbs | | true | show thumbnails of the images |boolean
| infiniteLoop | | false | infinite loop sliding |number
| selectedItem | | 0 | selects an item though props / defines the initial selected item |string
| axis | | horizontal | changes orientation - accepts horizontal and vertical |function
| onChange | | - | Fired when changing positions |function
| onClickItem | | - | Fired when an item is clicked |function
| onClickThumb | | - | Fired when a thumb it clicked |string
| width | | - | Allows to set a fixed width |boolean
| useKeyboardArrows | | false | Adds support to next and prev through keyboard arrows |boolean
| autoPlay | | false | Auto play |boolean
| stopOnHover | | true | Stop auto play while mouse is over the carousel |number
| interval | | 5000 | Interval of auto play |number
| transitionTime | | 350 | Duration of slide transitions (in miliseconds) |boolean
| useKeyboardArrows | | false | Adds support to next and prev through keyboard arrows |number
| swipeScrollTolerance | | 5 | Allows scroll when the swipe movement occurs in a different direction than the carousel axis and within the tolerance - Increase for loose - Decrease for strict | boolean
| dynamicHeight | | false | Adjusts the carousel height if required. -- Do not work with vertical axis -- |boolean
| emulateTouch | | false | Allows mouse to simulate swipe |func
| statusFormatter | | (current, total) => ${current} of ${total} | Allows custom formatting of the status indicator |
=======================
- don't submit changes to the /lib folder as it will be generated again after the merge.
- ensure you have the editorConfig plugin or the same code style settings as defined in .editorConfig to avoid excess of spaces in diffs=======================
$3
- git clone git@github.com:leandrowd/react-responsive-carousel.git
- npm install
- npm start
- Open your favourite browser on localhost:8000 - livereload will be enabled and tests will run on each change> The fastest dev environment is on node 6. If you have
nvm installed, just run nvm use 6. Tests in travis will run on node 4 and 6#### Running only tests
-
npm test#### Running storybook
-
npm run storybook=======================
$3
#### Publish to npm
-
npm run publish-to-npm#### Pubish to gh-pages
-
npm run publish-to-gh-pages`=======================
#### Storybook
=======================