Add heading to README.md
Fixes a typo breaking JS concatenation
Used to break JS concatenation w/ GruntJS since the very last semicolon was missing.
Update URL for parallax-url
Remove ender references in documentation and comments
Just some minor edits to readme.md
removed code comment
Store the actual starting positions.
…79a93ad7 Configurable degrees of tilt for gyro parallaxing
If mouse pointer is positioned at middle of screen, this will not make the layers jump on first position update.
…ill give get back some of the functionality that was lost when restricting gyro to same range as desktop by using wider range of tilt, and by setting a larger range of object motion. Also fixes the options handling in enable() so they aren't set every update, but only once.
Add option for restoring the original positions upon disable.
Restrict the input from the gyro to the same range as desktop version.
Also ensures that starting position when using gyro is "in the middle", and not the position corresponding to the top left corner when using mouse.
Return so we don't hit the first one
This removes a lot of spaghetti code surrounding how we handled accelerometer support in Plax in favor of using the iPhone's gyroscope instead. This means we get a clean range-of-motion effect, much as if you were looking through a window at the object. Kind of. Sort of. This probably removes support for desktop (which I think is a good thing, since people tend not to move their laptops around), and potentially support for Android and weird devices like that. We can add that back in later. In general, though, I think this greatly increases the readability of the project and gives it an effect that makes a lot more sense.