js carousel
npm install cute-clever-carouselbash
$ npm install --save cute-clever-carousel
`$3
`html


`$3
`css
.ccc-frame {
overflow: hidden;
}
.ccc-items {
position: relative;
white-space: nowrap;
}
.ccc-items > * {
display: inline-block;
}
`$3
`js
import Carousel from 'cute-clever-carousel';new Carousel(document.getElementsByClassName('carousel')[0], {/ options /});
`$3
see src/Options.ts$3
|interface|return value||
|----|----|:---|
|hasNext|boolean|whether it has the next item|
|hasPrev|boolean|whether it has the prev item|
|reset()|void|initialize grid|
|prev()|void|slide to prev item if exists|
|next()|void|slide to next item if exists|
|destroy()|void|remove all event listeners|Development
`bash
$ npm run watch$ cd sample
$ sudo npm run start
$ open http://localhost
`Test
`bash
$ npm test
``