@ginioo/simple-carousel

a simple carousel for images or else

Stats

StarsIssuesVersionUpdatedCreatedSize
@ginioo/simple-carousel
1.0.33 years ago3 years agoMinified + gzip package size for @ginioo/simple-carousel in KB

Readme

@ginioo/simple-carousel

a simple carousel for images or else

  1. install

    npm i -D @ginioo/simple-carousel
    
  2. add ImageCarousel to a component ```jsx import React, {Component} from 'react'; import {ImageCarousel} from '@ginioo/simple-carousel';

class SampleComponent extends Component {

render() { return (

// default slide to the right

    <ImageCarousel slide="left" src={[
        "http://via.placeholder.com/350x150",
        "http://via.placeholder.com/350x150",
    ]} />
  </div>
);

} }

export default SampleComponent;


3. define `#simple-carousel` height and width
```css
#simple-carousel {
  width: 1024px;
  height: 440px;
}

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.