Parallax effect with device inclination?

(giulio) #1

Is it possible to make a parallax effect affected by the inclination of the device?


(π•„π•šπ•”π•™π•’π•–π• 𝔾𝕒𝕣𝕠𝕗𝕒𝕝𝕠) #2

Theoretically, it seems possible. You’d just get the accelerometer data and have that value used to jump to a frame.

Keep in mind, I think of parallax as scrolling background like in classic 2D video games. I generally don’t do animation based on the position of the scroll bar.