1.0.0 • Published 6 years ago

horse-tornado v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

Version Build Status

Horse Tornado 🎠🌪️

React carousel with flexible API for adding content and custom buttons. https://stuartflanagan.github.com/horse-tornado

Installation

Via NPM

npm install horse-tornado --save

Via YARN

yarn install horse-tornado --save

Usage

Put your stuff inside the Horse Tornado Include and return the component in your own stateless function or class' render method.

include Carousel from 'horse-tornado';
...
return(
  <Carousel>
    <your-stuff>
    ...
  </Carousel>
);

Available Props

NameTypeDefaultAllowed ValuesDescription
pageinteger0Positive integerPage to set carousel to
directionstringhorizontalhorizontalverticalDirection of carousel movement.
infinitebooleanfalsetruefalseInfinite wrap around mode (Not yet avaialable)
groupByinteger0Positive integerAmount of slides to scroll. Default 0 scrolls the number of whole slides on a page.
freeScrollbooleanfalsetruefalsedisables snapping to page. (Not yet avaialable)
panSensitivitynumber.20-1Percentage of the page panned before a new page...
swipeSensitivitynumber.50-1Velocity at which a swipe is registered
transitionDurationstring.3sCSS Transition DurationCSS Transition Duration
transitionEasestringeaseCSS Transition Timing FunctionCSS Transition Timing Function

TODO

  • Add button API
  • Infinite mode
  • Free scroll mode
  • Support variable width slides
  • Documentation

Contributing

License

MIT. Copyright (c) 2017 Stuart Flanagan

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago