https://github.com/wangdahoo/swiper
https://github.com/wangdahoo/swiper
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/wangdahoo/swiper
- Owner: wangdahoo
- Created: 2019-12-16T02:50:48.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-10T12:14:55.000Z (over 3 years ago)
- Last Synced: 2025-04-05T15:46:33.249Z (about 1 year ago)
- Language: JavaScript
- Size: 913 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
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)