re-carousel
Minimal carousel component for React.
Usage
import Carousel from 're-carousel'
then:
Attributes
All attributes are optional.
-
axis
{enum}'x'
or'y'
('x'
by default) -
loop
{boolean}true
orfalse
(false
by default) toggle loop mode. -
auto
{boolean}true
orfalse
(false
by default) toggle auto sliding. -
interval
{number} (4000
ms by default) interval for auto sliding. -
duration
{number} (300
ms by default) duration for animation. -
widgets
{Array of ReactClass} Indicator and switcher could be various,
so it's not builtin. Here's some example custom widgets
(dots indicator,
prev/next buttons): -
frames
{Array of ReactElement} If you want to create frames programmatically,
use this attribute: