+ 1

how to get device rotation?

how can i get rotation of device which has gyroscop?

25th Dec 2018, 1:40 PM
nicolas turek
nicolas turek - avatar
5 Answers
+ 7
Here is an example code which shows rather you are on portrait or landscape view https://code.sololearn.com/W0Au5AuM4E5o/?ref=app
25th Dec 2018, 2:56 PM
BroFar
BroFar - avatar
+ 3
The initial one I gave you was a JavaScript the other 4 are css @media tricks to control change direction of content load...
25th Dec 2018, 4:18 PM
BroFar
BroFar - avatar
+ 1
thanks
25th Dec 2018, 4:12 PM
nicolas turek
nicolas turek - avatar
0
i don't want orientation...i want rotation to create gravity
25th Dec 2018, 3:02 PM
nicolas turek
nicolas turek - avatar