A no-configuration no-CSS React carousel.
npm install react-easy-carouselA no-configuration no-CSS React carousel.
With npm:
``bash`
npm install --save react-easy-carousel
Or with Yarn:
`bash`
yarn add react-easy-carousel
`jsx
import Carousel from 'react-easy-carousel'
...
`
Or if you need custom controls, like thumbnails:
`jsx
import Carousel from 'react-easy-carousel'
...
buttons={slideNumber => /thumbnail-${slideNumber}.jpg
} />}`
>
Property | Description | Default
--- | --- | ---
active | The current visible slide | 07000
auto | The number of milliseconds until the active slide automatically changes | "slide"
animation | The animation style of the slide change ("slide" or "fade") | 300
animationDuration | The duration of the transition animation in milliseconds | "#fff"
background | The slide default background color | false
dots | Shows control buttons at the bottom of the carousel | "#666"
dotColor | The color of the dot controls | "#000"
dotActiveColor | The color of the active dot button | 12`
dotSize | The dot size in pixels |
buttons | Pass in a function to create custom control buttons | n/a