Add a touch-friendly photo gallery with swipe navigation to a website without using a heavy framework
Display YouTube and Vimeo videos in a lightbox overlay alongside regular images on a web page
Create an auto-playing slideshow that cycles through images on a landing or portfolio page
Integrate an image gallery into an existing jQuery site using data attributes and minimal JavaScript
blueimp Gallery is a JavaScript library for displaying images and videos on a web page in a gallery, carousel, or lightbox format. A lightbox is the overlay that appears when you click a thumbnail and shows the full image on top of the page. A carousel shows images in a strip that you scroll through. blueimp Gallery handles both, and it works on both desktop and mobile devices. The library is touch-aware, so on a phone or tablet you can swipe left and right to move between items. It also responds to keyboard arrow keys, mouse clicks on previous and next controls, and supports fullscreen mode. A slideshow mode plays through the images automatically. Content is loaded on demand, meaning images and videos are only fetched when you actually navigate to them, which helps with performance on large galleries. Video support covers HTML5 video files as well as YouTube and Vimeo embeds. You configure video sources, preloading behavior, and controls through options you pass when initializing the gallery. Setting it up involves adding a CSS file, a small block of HTML that defines the gallery container and its navigation controls, and the gallery JavaScript file. You then create a list of links pointing to your images or videos. When a link in that list is clicked, the gallery opens and displays the content. There is also a jQuery plugin wrapper if you are already using jQuery on the page, which lets you initialize the gallery through jQuery's familiar syntax and HTML data attributes. The library has no required dependencies beyond a modern browser. It is distributed as an npm package and the source is available under an open source license. The README is extensive, covering all configuration options, API methods, event callbacks, and examples for each content type. The full README is longer than what was shown.
← blueimp on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.