JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
demo Add demo Apr 23, 2012
make Initial commit Apr 19, 2012
src Updated comments Apr 19, 2012
.gitignore Add gitignore Apr 19, 2012
LICENSE Initial commit Apr 19, 2012
Makefile Initial commit Apr 19, 2012
README.md Update README Nov 8, 2012
jquery.parallax.js Updated comments Apr 19, 2012
jquery.parallax.min.js Updated comments Apr 19, 2012

README.md

jquery.parallax.js

A jQuery parallax plugin

Tested in IE6-9, Chrome, Firefox 3.6, 12, Safari

Options

  • speed: multiplier at which the rate of the selected elements scroll (default: 1)
  • axis: axis on which the selected elements scroll. Takes a string of 'x' or 'y' (default: 'x')

Example

Turns parallax on two layers on the Y-axis at different speeds.

  $('.layer1').parallax({ speed: 0.5, axis: 'y' });
  $('.layer2').parallax({ speed: 0.3, axis: 'y' });

TODO

  • Implement start/stop positions for parallax to trigger on and off.

Contributing

This project uses smoosh for compiling, linting.