This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Chase Curry
Posted Feb 06 - Read on Facebook

Dumb question- there's no way to tap into a phone's accelerometer with framer right? I'm assuming no, since it's not native.

5 Comments

Callil Capuozzo

There is! Check out this demo I put together http://share.framerjs.com/vc22kpsoco7u/

Cemre Güngör

it's like one of the easiest things. lol

Callil Capuozzo

Also props to Cemre^ for the original code so he gets all the credit :)

Joshua Tucker

Totally – ditto everyone. Very easy to work with. I built a module for it as well if you're interested: https://github.com/joshmtucker/OrientationEvents

Fredrik Ampler

Very helpful, Joshua Tucker, thank you! One question: how do I detect rotation around the z-axis (alpha) when the phone is held up in front of me? It works beautifully lying down on a desk, but once held up, not at all. Any idea how to compensate/recalculate when vertical?

Read the entire post on Facebook