Get new jQuery plugins just once a week
November 11, 2013
parallax-js | lightweight engine for parallax effect on orientation
Parallax-js is a simple, lightweight Parallax Engine that reacts to the orientation of a smart device. Where no gyroscope or motion detection hardware is available, the position of the cursor is used instead.
- calibrate-x, whether or not to cache & calculate the motion relative to the initial x axis value on initialisation.
- calibrate-y ,Specifies whether or not to cache & calculate the motion relative to the initial y axis value on initialisation
- invert-x : true moves layers in opposition to the device motion, false slides them away.
- invert-y : true moves layers in opposition to the device motion, false slides them away.
Example Code :-
Created by Matthew Wagerfield
Sign up for our weekly newsletter.