+ 1
how to get device rotation?
how can i get rotation of device which has gyroscop?
5 Respuestas
+ 7
Here is an example code which shows rather you are on portrait or landscape view
https://code.sololearn.com/W0Au5AuM4E5o/?ref=app
+ 5
https://medium.com/dev-channel/the-gyroscope-65b02c4d23bd
https://code.sololearn.com/W465E34ibc8w/?ref=app
https://code.sololearn.com/WTvF0m0Ef12A/?ref=app
https://code.sololearn.com/W0Au5AuM4E5o/?ref=app
https://code.sololearn.com/WDCAMME1mC5N/?ref=app
https://code.sololearn.com/WrG7WUegKdPm/?ref=app
+ 3
The initial one I gave you was a JavaScript the other 4 are css @media tricks to control change direction of content load...
+ 1
thanks
0
i don't want orientation...i want rotation to create gravity