0.0.2 • Published 9 years ago
orientation-js v0.0.2
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
}