You can use javascript. First check if it is supported:
if (window.DeviceOrientationEvent) {
console.log("DeviceOrientation is supported");
}
Then add an eventListener if you want to do something on rotation:
window.addEventListener('deviceorientation', function(eventData) {});
, , . , . , , ( css?), , , CSS JavaScript (jQuery ).
, , , GET, , , , . JavaScript , iPhone. JavaScript CPU, , , . - HTML5- JavaScript. IPhone , App: P.
user1467267