No commit activity in last 3 years
No release in over 3 years
Parallax Hero Image for rails
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.7
~> 10.0
 Project Readme

Parallax Hero Image Rails Gem

Installation

Add this line to your application's Gemfile:

    gem 'parallaximage-rails'

And then execute:

    $ bundle install

Usage

Add to your app/assets/javascripts/application.js

    //= require modernizr
    //= require jquery.parallaximage

And to your app/assets/stylesheets/application.css.sass or application.css.scss

    @import parallaximage

Or application.css:

    *= require parallaximage

Example

The main HTML structure is a <figure> element containing our hero image (we used 3 different s) and wrapped in a .cd-background-wrapper element.

<div class="cd-background-wrapper">
	<figure class="cd-floating-background">
		<img src="img/cd-img-1.jpg" alt="image-1">
		<!-- images here -->
	</figure>
</div>

Documentation

Usage documentation as well as demos can be found at:

http://codyhouse.co/gem/parallax-hero-image/