@xby020/potato-slider
v0.0.3
Published
A simple fancy slider for Three.js
Downloads
11
Readme
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);