A lightweight jQuery plugin that enables parallax scrolling effect.
- You can use it on elements with background property or on any other element
- While scrolling elements can move: vertical, horizontal
- Manipulated through html data-* attributes
- Mobile ready
- Easy to use
DEMO: example page
Before closing element include:
$ bower install paroller.js
$("body").paroller();
To enable Paroller on element you have to add data-paroller-factor to selected element. data-paroller-factor sets speed and distance of element's parallax effect on scroll.
data-* | value | default value |
---|---|---|
data-paroller-factor | invokes jquery.paroller.js functionality. It sets elements offset and speed. It can be positive (0.3) or negative (-0.3). Less means slower. | 0 |
data-paroller-type | background, foreground | background |
data-paroller-direction | vertical, horizontal | vertical |
$("element").paroller();
$(window).paroller({ factor: '0.5', type: 'foreground', direction: 'horizontal' });
- direction: diagonal
MIT