Skip to content

Latest commit

 

History

History
29 lines (16 loc) · 661 Bytes

README.md

File metadata and controls

29 lines (16 loc) · 661 Bytes

LightboxJs

This is a rails gem for Lightbox. Lightbox is a simple, unobtrusive script used to overlay images on top of the current page. It's a snap to setup and works on all modern browsers. The gem uses the forked version from https://github.com/OutPunk/lightbox2

Installation

Add this line to your application's Gemfile:

gem 'lightboxjs'

And then execute:

$ bundle

Usage

Include lightbox script for example, in application.js.coffee

#= require lightbox

Include lightbox styles for example, in application.css.scss

//= require lightbox

Use lightbox by it's instructions — http://lokeshdhakar.com/projects/lightbox2/