/anka-slider

An efficient slider component.

Primary LanguageJavaScriptMIT LicenseMIT

anka-slider

npm (scoped) npm (scoped)

An efficient slider component.

Screen Shot 2019-08-17 at 01 13 53

Why should I use it?

It has a iterator algorithm and only shows active slide for your performance.

Install

$ npm install anka-slider

Usage

import AnkaSlider from 'anka-slider'

const items = [
      {
        url: 'path/to/image',
        alt: 'image description'
      }
    ];

const settings = {
      animation: true,
      arrows: true,
      dots: true
    }

<AnkaSlider
    items={items} 
    settings={settings} />