Parallax Content Slider with CSS3 and jQuery Gem
Installation
Add this line to your application's Gemfile:
gem 'parallaxslider-rails'
And then execute:
$ bundle install
Usage
Parallax Slider is dependant on jQuery, so make sure you have it in your Gemfile.
//= require jquery
Add to your app/assets/javascripts/application.js
//= require modernizr.custom.28468
//= require jquery.cslider
And to your app/assets/stylesheets/application.css.sass or application.css.scss
@import parallaxslider
Or application.css:
*= require parallaxslider
Documentation
Usage documentation as well as demos can be found at:
http://tympanus.net/codrops/2012/03/15/parallax-content-slider-with-css3-and-jquery/
Contributing
- Fork it ( https://github.com/[my-github-username]/parallaxslider-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