Skip to content

Commit

Permalink
Merge pull request #62 from leandrowd/auto-play
Browse files Browse the repository at this point in the history
Adding support to auto play
  • Loading branch information
leandrowd authored Sep 26, 2016
2 parents 7c8c07d + 5abe86e commit 86d674d
Show file tree
Hide file tree
Showing 4 changed files with 210 additions and 66 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ ReactDOM.render(<DemoCarousel />, document.querySelector('.demo-carousel'));
| onClickItem | `function` | - | Fired when an item is clicked |
| onClickThumb | `function` | - | Fired when a thumb it clicked |
| width | `string` | - | Allows to set a fixed width |
| useKeyboardArrows | `boolean` | false | Adds support to next and prev through keyboard arrows |
| autoPlay | `boolean` | false | Auto play |
| stopOnHover | `boolean` | true | Stop auto play while mouse is over the carousel |
| interval | `number` | `5000` | Interval of auto play |
| useKeyboardArrows | `boolean` | `false` | Adds support to next and prev through keyboard arrows |
| swipeScrollTolerance | `number` | `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 |

Expand Down
Loading

0 comments on commit 86d674d

Please sign in to comment.