bootstrap-lightbox

A simple lightbox plugin based on the bootstrap modal plugin.

  • Owner: jbutz/bootstrap-lightbox
  • Platform:
  • License:: Other
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

THIS PLUGIN IS NO LONGER BEING MAINTAINED. IF SOMEONE ELSE WANTS TO MAINTAIN IT FEEL FREE TO FORK THE REPO.

Bootstrap - Lightbox Build Status

This is a plugin for Twitter Bootstrap that adds a lightbox that is based off the modal dialog

Quick start

You have several options. You can clone the repository git clone git://github.com/jbutz/bootstrap-lightbox.git, grab an archive, or use cdnjs.

Once you have the files include the CSS and JavaScript files in your page and then give the example code below a shot.

Example

<a data-toggle="lightbox" href="#demoLightbox">Open Lightbox</a>
<div id="demoLightbox" class="lightbox fade"  tabindex="-1" role="dialog" aria-hidden="true">
	<div class='lightbox-dialog'>
		<div class='lightbox-content'>
			<img src="image.png">
			<div class='lightbox-caption'>
				Your caption here
			</div>
		</div>
	</div>
</div>

Usage

Via data attributes

All you need to do is add data-toggle="lightbox" and href="#lightbox" or data-target="#lightbox" to a link, and set the href so it references the lightbox you want to display.

<a data-toggle="lightbox" href="#demoLightbox">Open Lightbox</a>

Via JavaScript

Open the lightbox with the id myLightbox.

$('#myLightbox').lightbox(options)

Options

Overview

Name With Ownerjbutz/bootstrap-lightbox
Primary LanguageHTML
Program languageCSS (Language Count: 3)
Platform
License:Other
Release Count9
Last Release Namev0.7.0 (Posted on )
First Release Namev0.1.0 (Posted on )
Created At2012-04-20 16:18:56
Pushed At2022-09-02 17:06:49
Last Commit At2022-08-10 19:16:18
Stargazers Count1.1k
Watchers Count96
Fork Count290
Commits Count95
Has Issues Enabled
Issues Count0
Issue Open Count0
Pull Requests Count6
Pull Requests Open Count3
Pull Requests Close Count1
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private
To the top