Play timeline on tilt?

(James Rose) #1

Hmmm not sure if this has been covered before (I did try the search).

I’m wondering if I can control the timeline position based on device tilt?



(Jonathan Deutsch) #2

There’s no built-in way to do this, but it could be done with some JavaScript. The first piece is getting the tilt information. This is done by adding a deviceorientation listener:

After this, you can control a timeline via the hypeDocument.goToTimeInTimelineNamed(0, 'timelineName') API.