EasyZoomOnRails
EasyZoom is an elegant, highly optimised jQuery image zoom and panning plugin based on the original work by Alen Grakalic. EasyZoom supports touch-enabled devices and is easily customisable with CSS.
Installation
Add this line to your application's Gemfile:
gem 'easy_zoom_on_rails'
And then execute:
$ bundle
Or install it yourself as:
$ gem install easy_zoom_on_rails
Usage
application.js
//= require easyzoom
application.css
*= require easyzoom
To simplify the usage of plugin, easy_zoom_tag
view helper method provided
= easy_zoom_tag(zoom: '1_zoom.jpg', standard: '1_standard.jpg', class: 'easyzoom easyzoom--overlay')
More info
Contributing
- Fork it ( https://github.com/Saidbek/easy_zoom_on_rails/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request