lite-swiper
A lightweight swiper component for mobile frontend.
Demo
Usage
npm install lite-swiper --save
elements
Ensure a container with [width
, height
, overflow
] styles, an item wrapper, and several items:
item1 item2 item3
script
Create an instance like this:
var Swipe = ;var $target = document;var mySwiper = $target cssText: item: '' indicators: '' indicator: '' indicatorCurrent: '' { console; };
License
MIT