1.0.0 • Published 6 years ago
react-anim-carousel v1.0.0
simple-carousel
simple-carousel is an npm package (react-anim-carousel) written in React.
It can be used to add a carousel component.
Link for demo - https://nehasoni.github.io/simple-carousel
Requirements
Installation
npm install --save react-anim-carousel
Usage
import Carousel from "react-anim-carousel";
<Carousel>
<div style={{ background: "blue", height: "400px", minWidth: "100%", width: "400px"}}>{image.id}</div>
<div style={{ background: "red", height: "400px", minWidth: "100%", width: "400px"}}>{image.id}</div>
<div style={{ background: "yellow", height: "400px", minWidth: "100%", width: "400px"}}>{image.id}</div>
</Carousel>Options
showNavigation- shows or hides arrows for navigation. Its default value istrueshowDots- shows or hides the dots on the bottom for navigation. Its default value istrueauto- Iftrueslides changes in the given interval.autoSpeed- slide change interval in milliseconds. Its default value is 3s.
1.0.0
6 years ago