Integrates magnific-popup.css with the rails asset pipeline.
Magnific Popup is a free responsive jQuery lightbox plugin that is focused on performance and providing best experience for user with any device (Zepto.js compatible).
The magnific popup is created by Created by Dmitry Semenov.
I used markmcconachie's normalize-rails gem as an example for setting up this magnific popup gem.
Add this line to your application's Gemfile:
gem 'magnific-popup-rails'
And then execute:
$ bundle
And then in your application.css
*= require magnific-popup
And then in your application.js
//= require magnific-popup
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request