A jQuery parallax plugin
Tested in IE6-9, Chrome, Firefox 3.6, 12, Safari
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'
)
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' });
- Implement start/stop positions for parallax to trigger on and off.
This project uses smoosh for compiling, linting.