You are here

README.txt in Parallax Background 7

Parallax Background

This a simple module that allows to set a vertical Parallax effect on the background of any element on the DOM.
Installation

Download and enable Parallax Background Module.

From jQuery Parallax on GitHub download, rename and save jquery.scrollTo.js and jquery.parallax.js on the module's /js directory.

They should look like this:
parallax_bg/js/jquery.scrollTo.js
parallax_bg/js/jquery.parallax.js
Configuration

    Goto admin page in /admin/config/user-interface/parallax_bg
    Define the element you want to apply the Parallax effect using any valid jQuery selector. The selector should point to the element that holds the background, for example: #top-content, body.one-page #super-banner
    Additionally you need to define the inertia (relative speed) of the background and its horizontal position.

CSS Note

Depending on the position of your element, you need to apply some top-padding to align the background when entering viewport.
Plugins needed

This module uses the jQuery Parallax and jQuery.ScrollTo plugins.

File

README.txt
View source
  1. Parallax Background
  2. This a simple module that allows to set a vertical Parallax effect on the background of any element on the DOM.
  3. Installation
  4. Download and enable Parallax Background Module.
  5. From jQuery Parallax on GitHub download, rename and save jquery.scrollTo.js and jquery.parallax.js on the module's /js directory.
  6. They should look like this:
  7. parallax_bg/js/jquery.scrollTo.js
  8. parallax_bg/js/jquery.parallax.js
  9. Configuration
  10. Goto admin page in /admin/config/user-interface/parallax_bg
  11. Define the element you want to apply the Parallax effect using any valid jQuery selector. The selector should point to the element that holds the background, for example: #top-content, body.one-page #super-banner
  12. Additionally you need to define the inertia (relative speed) of the background and its horizontal position.
  13. CSS Note
  14. Depending on the position of your element, you need to apply some top-padding to align the background when entering viewport.
  15. Plugins needed
  16. This module uses the jQuery Parallax and jQuery.ScrollTo plugins.