🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

parallaximage-rails

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

parallaximage-rails

1.0.0
Rubygems
Version published
Maintainers
1
Created
Source

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

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/

FAQs

Package last updated on 13 Apr 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts