Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/apexskier/parallax
Javascript parallax, mimicking parallax in iOS.
https://github.com/apexskier/parallax
Last synced: about 2 months ago
JSON representation
Javascript parallax, mimicking parallax in iOS.
- Host: GitHub
- URL: https://github.com/apexskier/parallax
- Owner: apexskier
- Created: 2013-10-28T01:42:57.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-01-30T19:46:15.000Z (almost 10 years ago)
- Last Synced: 2024-04-14T19:20:31.309Z (8 months ago)
- Language: JavaScript
- Homepage: http://apexskier.github.io/parallax/
- Size: 148 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
parallax
========Javascript parallax, mimicking parallax in iOS.
Works on iPad and iPhone 5S.
I've decided to not use trigonometry, to help increase framerate performance.
Device orientation values are weighted to avoid movement corresponding with rotation along the axis orthogonal to the screen, as this doesn't happen in iOS.
### TODO
Add 'soft reset', a slow pull towards the center. (You'll notice this if you look for it on an iOS device.)
Possibly fix buggyness when device is held vertically.