slighty

Gem Version

a simple lightbox plugin that runs with Rails Asset Pipeline.

installation

  1. add to your Gemfile and install with bundler:
  gem 'slighty'
  bundle install
  1. require the slight javascript file in app/assets/javascripts/application.js:
  //= require slighty
  1. require the modified slighty css file in app/assets/stylesheets/application.css:
  *= require slighty

how it works?

slighty automatically binds your a tags that includes data-slighty attribute. for example;

<a href="image_url_to_show_in_slighty" data-slighty>
    <img src="..." />
</a>

copyright Okan Vurdu, released under the MIT License.