https://github.com/ethercreative/ether-gallery
A gallery plugin for jQuery
https://github.com/ethercreative/ether-gallery
Last synced: 4 months ago
JSON representation
A gallery plugin for jQuery
- Host: GitHub
- URL: https://github.com/ethercreative/ether-gallery
- Owner: ethercreative
- License: mit
- Created: 2015-05-15T09:19:37.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-05-18T08:57:59.000Z (about 10 years ago)
- Last Synced: 2025-02-22T12:34:07.968Z (4 months ago)
- Language: JavaScript
- Size: 141 KB
- Stars: 1
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ether Gallery
A gallery plugin for jQuery[**Demo**](http://ethercreative.github.io/ether-gallery/)
### Example HTML Markup
```html
```
### JavaScript Setup
```js
$('.gallery').etherGallery({
keys: true, // Enables keyboard controls (left/right arrows, escape)
swipe: true // Enables swipe controls on touch devices
});
```
### Classes
- `.egal-overlay` An overlay div
- `.egal-ul` The list
- `.egal-active` The active list item
- `.egal-prev` The previous list item
- `.egal-next` The next list item
### Lazy Loading
The images are loaded in as their list item becomes the `.egal-next`. This means we only load in images as we need them.
### Todo
- Add option to toggle lazy loading on images.