@xby020/potato-slider
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

Potato slider

an another fancy web slider

Install

npm install @xby020/potato-slider

Usage

import PotatoSlider from '@xby020/potato-slider'

const dom = document.getElementById('slider');
const images = ['imgUrl1','imgUrl2','imgUrl3'];

const slider = new PotatoSlider(dom,images);

// promise
await slider.init();

Switch

// switch by id, which is the index of images
slider.switchById(1);

Readme

Keywords

none

Package Sidebar

Install

npm i @xby020/potato-slider

Weekly Downloads

0

Version

0.0.3

License

none

Unpacked Size

108 kB

Total Files

5

Last publish

Collaborators

  • xby020