PHPackages                             dmitryproa/swipebox - 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. [Image &amp; Media](/categories/media)
4. /
5. dmitryproa/swipebox

ActiveLibrary[Image &amp; Media](/categories/media)

dmitryproa/swipebox
===================

A touchable jQuery lightbox (origin: https://brutaldesign.github.io/swipebox/ )

1.4.4(2y ago)013JavaScript

Since Aug 15Pushed 2y agoCompare

[ Source](https://github.com/dmitryproa/swipebox)[ Packagist](https://packagist.org/packages/dmitryproa/swipebox)[ RSS](/packages/dmitryproa-swipebox/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

ORIGIN: Made this fork just for composer

Swipebox
========

[](#swipebox)

A touchable jQuery lightbox.

[View project page](https://swipebox.codes/)

What is Swipebox ?
------------------

[](#what-is-swipebox-)

Swipebox is a jQuery "lightbox" plugin for desktop, mobile and tablet.

Features
--------

[](#features)

- Swipe gestures for mobile
- Keyboard Navigation for desktop
- CSS transitions with jQuery fallback
- Retina support for UI icons
- Easy CSS customization
- Video, Images and Inline content

### Compatibility

[](#compatibility)

Chrome, Safari, Firefox, Opera, IE9+, IOS4+, Android, windows phone.

Usage
-----

[](#usage)

### Javascript

[](#javascript)

Include jquery and the swipebox script in your head tags or right before your body closing tag.

```

```

### CSS

[](#css)

Include the swipebox CSS style in your head tags.

```

```

### HTML

[](#html)

Use a specific class for your links and use the title attribute as caption.

```

```

### Fire the plugin

[](#fire-the-plugin)

Bind the swipebox behaviour on every link with the "swipebox" class.

```
$( '.swipebox' ).swipebox();
```

### Options

[](#options)

```
useCSS : true, // false will force the use of jQuery for animations
initialIndexOnArray: 0, // which image index to init when a array is passed
removeBarsOnMobile : true, // false will show top navigation bar on mobile devices
hideCloseButtonOnMobile : false, // true will hide the close button on mobile devices
removeBarsOnMobile : true, // false will show bottom bar on mobile devices
hideBarsDelay : 3000, // delay before hiding bars on desktop
videoMaxWidth : 1140, // videos max width
beforeOpen: function(){} , // called before opening
afterOpen: null, // called after opening
afterClose: function(){}, // called after closing
afterMedia: function(){}, // called after media is loaded
loopAtEnd: false, // true will return to the first image after the last image is reached
autoplayVideos: false // true will autoplay Youtube and Vimeo videos
queryStringData: {} // plain object with custom query string arguments to pass/override for video URLs,
toggleClassOnLoad: '' // CSS class that can be toggled when the slide will be loaded (like 'hidden' of Bootstrap)
useSVG: true
nextSlide: function(){} // called on next slide, works for next button, arrow keys and touch navigation
prevSlide: function(){} // called on previous slide, works for previous button, arrow keys and touch navigation
```

### Pull Requests

[](#pull-requests)

I want to keep this plugin as simple as possible. I won't merge pull requests for additional features such as download buttons, social like buttons, IE8 compatibility etc... But feel free to fork the project and customize it to suit to your needs. Most wanted PR are for bug fixes. Also, a future improvement will be to allow zoom on touchable devices.

If you want to submit a pull request please be sure to grunt the whole thing (mostly jshintrc validation and minified file) and send me a demo URL. Also, please comment your code.

Thanks for your understanding and thank you all for your helpful support!

###  Health Score

21

—

LowBetter than 17% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 54.1% 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

731d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/48441095?v=4)[Dmitry Promokhov](/maintainers/dmitryproa)[@dmitryproa](https://github.com/dmitryproa)

---

Top Contributors

[![brutaldesign](https://avatars.githubusercontent.com/u/3048636?v=4)](https://github.com/brutaldesign "brutaldesign (66 commits)")[![dheera](https://avatars.githubusercontent.com/u/1786477?v=4)](https://github.com/dheera "dheera (15 commits)")[![matthaywardwebdesign](https://avatars.githubusercontent.com/u/6156252?v=4)](https://github.com/matthaywardwebdesign "matthaywardwebdesign (8 commits)")[![wolfthemes](https://avatars.githubusercontent.com/u/25675243?v=4)](https://github.com/wolfthemes "wolfthemes (3 commits)")[![apropos](https://avatars.githubusercontent.com/u/465362?v=4)](https://github.com/apropos "apropos (2 commits)")[![stackcoder](https://avatars.githubusercontent.com/u/4529523?v=4)](https://github.com/stackcoder "stackcoder (2 commits)")[![dmitryproa](https://avatars.githubusercontent.com/u/48441095?v=4)](https://github.com/dmitryproa "dmitryproa (2 commits)")[![gergo85](https://avatars.githubusercontent.com/u/2959112?v=4)](https://github.com/gergo85 "gergo85 (2 commits)")[![dylanjameswagner](https://avatars.githubusercontent.com/u/893345?v=4)](https://github.com/dylanjameswagner "dylanjameswagner (1 commits)")[![elstgav](https://avatars.githubusercontent.com/u/674092?v=4)](https://github.com/elstgav "elstgav (1 commits)")[![fabtho](https://avatars.githubusercontent.com/u/15102967?v=4)](https://github.com/fabtho "fabtho (1 commits)")[![alertmybanjos](https://avatars.githubusercontent.com/u/4190?v=4)](https://github.com/alertmybanjos "alertmybanjos (1 commits)")[![j-r-t](https://avatars.githubusercontent.com/u/2971832?v=4)](https://github.com/j-r-t "j-r-t (1 commits)")[![karooolis](https://avatars.githubusercontent.com/u/3159964?v=4)](https://github.com/karooolis "karooolis (1 commits)")[![leberknecht](https://avatars.githubusercontent.com/u/1165177?v=4)](https://github.com/leberknecht "leberknecht (1 commits)")[![lucasts](https://avatars.githubusercontent.com/u/6397?v=4)](https://github.com/lucasts "lucasts (1 commits)")[![micschk](https://avatars.githubusercontent.com/u/1005986?v=4)](https://github.com/micschk "micschk (1 commits)")[![oswaldoacauan](https://avatars.githubusercontent.com/u/1268518?v=4)](https://github.com/oswaldoacauan "oswaldoacauan (1 commits)")[![ppsirius](https://avatars.githubusercontent.com/u/6945614?v=4)](https://github.com/ppsirius "ppsirius (1 commits)")[![psenger](https://avatars.githubusercontent.com/u/211395?v=4)](https://github.com/psenger "psenger (1 commits)")

### Embed Badge

![Health badge](/badges/dmitryproa-swipebox/health.svg)

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

###  Alternatives

[goat1000/svggraph

Generates SVG graphs

135931.0k3](/packages/goat1000-svggraph)[stefangabos/zebra_image

A single-file, lightweight PHP library designed for efficient image manipulation featuring methods for modifying images and applying filters

138121.6k7](/packages/stefangabos-zebra-image)[treinetic/imageartist

ImageArtist is a php gd Wrapper which makes Image manipulation insanely easy, we introduce ImageArtist as Photoshop for php

8783.2k](/packages/treinetic-imageartist)[datatables.net/datatables.net

DataTables is a plug-in for the jQuery Javascript library. It is a highly flexible tool, based upon the foundations of progressive enhancement, which will add advanced interaction controls to any HTML table. This is jQuery DataTables

59174.2k54](/packages/datatablesnet-datatablesnet)[mapbender/mapbender

Mapbender library

10418.5k8](/packages/mapbender-mapbender)[johncarter/filament-focal-point-picker

An image focal point picker for Filament Admin.

4431.7k1](/packages/johncarter-filament-focal-point-picker)

PHPackages © 2026

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