orientation-js
v0.0.2
Published
Detect device orientation.
Downloads
2
Readme
Orientation-js
Detect device orientation.
DEMO
Usage
In stylesheets
.portrait .stuff{
background-color: red;
}
.landscape .stuff{
background-color: blue;
}
In scripts
if(Orientation.isPortrait()){
// do something
}
if(Orientation.isLandscape()){
// do something
}