PHPackages                             lagman/swiper - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. lagman/swiper

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

lagman/swiper
=============

Swiper - Mobile touch slider with hardware accelerated transitions

013811JavaScript

Since Jul 6Pushed 11y ago1 watchersCompare

[ Source](https://github.com/russianlagman/swiper)[ Packagist](https://packagist.org/packages/lagman/swiper)[ RSS](/packages/lagman-swiper/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (1)

Swiper - Mobile touch slider with hardware accelerated transitions
==================================================================

[](#swiper---mobile-touch-slider-with-hardware-accelerated-transitions)

About
-----

[](#about)

**Swiper** - is the **free and ultra lightweight** mobile touch slider with hardware accelerated transitions (where supported) and amazing native behavior. It is intended to use in mobile websites, mobile web apps, and mobile native apps. Designed mostly for iOS, but also works on Android and latest Desktop browsers. **Swiper** is created by [iDangero.us](http://www.idangero.us)

Features
--------

[](#features)

- **1:1 Touch movement**. But this ratio can be configured
- **Touch emulation**. This function will be useful if you are going to use Swiper on desktop sites. In this case Swiper will accept mouse events like touch events (click and drag to change slides)
- **Vertical/Horizontal**. Swiper comes with 2 main modes - horizontal (for horizontal animation and horizontal swipes) and vertical (for vertical animation and vertical swipes)
- **Free Mode**. When this mode enabled slides will not have fixed positions, like usual scroller (see demos bellow)
- **Rotation/resize adjustment**. Swiper will be reinitialized after rotation of device
- **Responsive**. Can be used with a width or/and height defined in percents, not fixed. Useful for usage on devices with a different resolutions
- **Scroll prevention**. Swiper will prevent vertical scroll when you touch it in "horizontal" mode, and horizontal scroll in "vertical" mode
- **Resistant bounds**. Swiper will increase resistance when you try to swipe it over than most left and most right positions (most top and most bottom for "vertical" mode)
- **Built-in pagination control**. Can be disabled
- **Auto Play**. Just set the delay and Swiper will change the slides automatically untill you touch it.
- **Loop mode**. In this mode you will get infinite scrolling and first slides will repeat after last ones. New in 1.5
- **Carousel mode**. Swiper allows you to set numbers of slides you want to display at the same time on slider's container. New in 1.5
- **Nested Swipers.** You can insert one Swiper into slide of different Swiper, for example vertical into horizontal. New in 1.5
- **Any HTML**. You can put any HTML content inside of slide, not only images
- **Rich API**. Swiper comes with very rich API. It allows to create your own pagination, "next" and "previous" buttons and comes with 4 callbacks - onTouchStart, onTouchMove, onTouchEnd, onSlideSwitch
- **Flexible configuration**. Swiper accepts a lot of parameters on initialization to make it much flexible as possible. You can configure animation speed, mode (vertical or horizontal), free mode, enable/disable pagination, touch ratio, etc.
- **Hardware accelerated**. Swiper uses hardware accelerated technics (where supported) to achive ultra smooth animation and perfomance, especially on iOS devices.
- **Awesome compatibility**. Swiper compatible and tested with: Mobile Safari (tested on iOS5), Android 2.1%2B, latest desktop versions of Google Chrome, Safari, Firefox, Internet Explorer 10 and Opera. It also works in Internet Explorer 9 but without animation.
- **Standalone**. Swiper doesn't require any JavaScript libraries like jQuery, it makes Swiper much more smaller and faster. So it can be safely used with such libraries as jQuery, jQuery Mobile, jQTouch, etc.
- **Ultra lightweight**. Only 3.2 KB minified and gzipped

***With all these features you can build amazing touch interfaces and apps with awesome native behavior.***

Demos &amp; Usage
-----------------

[](#demos--usage)

License
-------

[](#license)

Swiper is licensed under GPL &amp; MIT

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community24

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 67.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1297270?v=4)[Vahid G](/maintainers/lagman)[@lagman](https://github.com/lagman)

---

Top Contributors

[![nolimits4web](https://avatars.githubusercontent.com/u/999588?v=4)](https://github.com/nolimits4web "nolimits4web (143 commits)")[![stephanebachelier](https://avatars.githubusercontent.com/u/172615?v=4)](https://github.com/stephanebachelier "stephanebachelier (15 commits)")[![ekzobrain](https://avatars.githubusercontent.com/u/2089893?v=4)](https://github.com/ekzobrain "ekzobrain (8 commits)")[![andyburke](https://avatars.githubusercontent.com/u/273857?v=4)](https://github.com/andyburke "andyburke (7 commits)")[![OrbintSoft](https://avatars.githubusercontent.com/u/6378748?v=4)](https://github.com/OrbintSoft "OrbintSoft (4 commits)")[![GalCohen](https://avatars.githubusercontent.com/u/1293368?v=4)](https://github.com/GalCohen "GalCohen (3 commits)")[![girliemac](https://avatars.githubusercontent.com/u/107763?v=4)](https://github.com/girliemac "girliemac (3 commits)")[![baxang](https://avatars.githubusercontent.com/u/196302?v=4)](https://github.com/baxang "baxang (3 commits)")[![andreybs11](https://avatars.githubusercontent.com/u/1462803?v=4)](https://github.com/andreybs11 "andreybs11 (2 commits)")[![patrickmallahan](https://avatars.githubusercontent.com/u/6105827?v=4)](https://github.com/patrickmallahan "patrickmallahan (2 commits)")[![X4arms](https://avatars.githubusercontent.com/u/1517616?v=4)](https://github.com/X4arms "X4arms (2 commits)")[![tremby](https://avatars.githubusercontent.com/u/199635?v=4)](https://github.com/tremby "tremby (2 commits)")[![metalagman](https://avatars.githubusercontent.com/u/1983796?v=4)](https://github.com/metalagman "metalagman (1 commits)")[![seastland](https://avatars.githubusercontent.com/u/3535053?v=4)](https://github.com/seastland "seastland (1 commits)")[![silvenon](https://avatars.githubusercontent.com/u/471278?v=4)](https://github.com/silvenon "silvenon (1 commits)")[![TatumCreative](https://avatars.githubusercontent.com/u/22155328?v=4)](https://github.com/TatumCreative "TatumCreative (1 commits)")[![vladgurovich](https://avatars.githubusercontent.com/u/444833?v=4)](https://github.com/vladgurovich "vladgurovich (1 commits)")[![wolffan](https://avatars.githubusercontent.com/u/1092080?v=4)](https://github.com/wolffan "wolffan (1 commits)")[![yukulele](https://avatars.githubusercontent.com/u/347244?v=4)](https://github.com/yukulele "yukulele (1 commits)")[![bitdeli-chef](https://avatars.githubusercontent.com/u/3092978?v=4)](https://github.com/bitdeli-chef "bitdeli-chef (1 commits)")

### Embed Badge

![Health badge](/badges/lagman-swiper/health.svg)

```
[![Health](https://phpackages.com/badges/lagman-swiper/health.svg)](https://phpackages.com/packages/lagman-swiper)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
