2017 © Pedro Peláez
 

library lighterbox

image

adamhenson/lighterbox

  • Monday, September 26, 2016
  • by akiyatkin
  • Repository
  • 1 Watchers
  • 0 Stars
  • 18 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 17 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

lighterbox

A lighterweight lightbox gallery module. A simple plugin supporting modern mobile and desktop browsers to minimize configuration and hacky code. Customizable., (*1)

Example

See an example here., (*2)

Usage

Download lighterbox and reference it after jQuery., (*3)

<script src="/js/libs/jquery/jquery.lighterbox.js"></script>

Or load via synchronous or asynchronous module definition., (*4)

All basic styling is set in the JS, however it would be easy to override using the class selectors., (*5)

HTML

<a href="https://s3.amazonaws.com/hensonism-art/paul-gauguin/gaugin3.jpg" class="lighterbox">
    <img src="https://s3.amazonaws.com/hensonism-art/paul-gauguin/thumbs/gaugin3.jpg" />
    <h2 class="lighterbox-title">Painting by Paul Gaugin</h2>
    <span class="lighterbox-desc">Oil on Canvas</span>
</a>

JavaScript

$(".lighterbox").lighterbox({ overlayColor : "white" });

Options

  • overlayColor : {string} "white" or "black" options set the theme. Default is white.
  • overlayOpacity : {string or integer} Any valid css value.
  • animateSpeed : {string or integer} Any valid css value.

The Versions

26/09 2016

dev-master

9999999-dev

  Sources   Download

26/09 2016

1.0.0

1.0.0.0

  Sources   Download