An open API service indexing awesome lists of open source software.

https://github.com/wangdahoo/swiper


https://github.com/wangdahoo/swiper

Last synced: 12 months ago
JSON representation

Awesome Lists containing this project

README

          

# Swiper

> swiper for mobile in minimal.

## Usage

```html




Swiper in Minimal




html, body {
margin: 0;
padding: 0;
}

.swiper-item {
background: orange;
color: #fff;
font-size: 100px;
line-height: 300px;
text-align: center;
}




0


1


2


3


4




window.swiper = new Swiper(document.querySelector('.swiper'), {
auto: false,
itemClass: '.swiper-item',
disableTouch: false,
direction: 'horizontal',
transitionEnd: function (prev, current, length) {
console.log(prev, current, length)
}
})

```

## More

- [Examples](https://wangdahoo.github.io/swiper)