UADetect orientation
Componet
Did you know this component has a sister component called
orientationIsPortrait
?Description
Tell's whether the client is in landscape mode.
Possible Returns
true
false
Usage Example
#1
import { orientationIsLandscape } from 'uadetect';if (orientationIsLandscape) { element.style.display = 'block';}
#2
import { orientationIsLandscape } from 'uadetect';if (!orientationIsLandscape) { element.style.display = 'none';}
Table of Contents