slighty
a simple lightbox plugin that runs with Rails Asset Pipeline.
installation
- add to your
Gemfile
and install with bundler:
gem 'slighty'
bundle install
- require the slight javascript file in
app/assets/javascripts/application.js
:
- 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.