We implemented parallax for our signup form:
http://42debut.com/#/demo/signup
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