Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
[Master feature] Tilt-based animations #14740
Developers sometimes link device title to the background position of images, so that the content shifts on the screen in different directions and at different speeds based on the direction and degree of tilt. Ideally we can link this to an intuitive natural metaphor, so it feels predictable and natural. Phase one will be a low-level API along the lines of amp-position-observer, that allows such animations at a basic level.
Phase two may include a simple wrapper along the lines of amp-fx-collection to support a trivial-to-implement full-featured version.
For example, background-position for a given image could be linked to a velocity and acceleration that roughly matches that of a physical object sliding on a tilted table with a reasonable weight and sense of friction between the object and table—need to explore what the best UX is.
And for clarity: I'm aware of two features related to tilt-based animation that we're considering:
My understanding is that you, @nainar , are working on (1), but not (2) currently—we can create a separate feature request for (2) as needed.