Parallax effect using motion detection
wagerfield.github.io
wagerfield.github.io
The key is to feed the mouse position or device orientation into this easing function: https://en.wikipedia.org/wiki/Error_function
Here's a nice JS approximation of that function: http://picomath.org/javascript/erf.js.html
But modelling it as a real scene sounds awesome, I'll experiment.
Check it out.
Parallax cannot be used everywhere, but there are a lot of cool uses for it. I can see a big use for showcasing how apps can be used rather than just slides or pages of pictures.
I'm asking this because I was getting into HTML5 canvas recently, and noticed on Firefox that even a very simple canvas animation is laggy. What's the deal?
The page's performance might be very dependent on browser's heuristic for conserving memory vs using GPU accelerated layers.
Interestingly, it's the same vertigo I receive when someone rotates an arm-mounted screen while I'm playing an FPS game on it.
I had no idea it was possible to reproduce that with simple 2D effects. Science for the win, though my stomach does not thank me.
This artistic style of depth, or what little I could discern before I had to close the page at least, reminds me very strongly of the iOS game 'Ramp Champ'.
This would be an awesome page to implement Mobile Safari's new minimal-ui viewport property on:
http://darkblue.sdf.org/weblog/ios-7-dot-1-mobile-safari-min...
With a more subtle effect and better response time it could work.