Module: detect-orientation

Detection of viewport orientation (not device physical orientation)

Source:

CSS classes


portrait
landscape

Methods


JS.Responsive.isLandscape()

Returns true if current device has display landscape oriented (width is larger than height).

Since:
  • 3.0.0

Source:
Returns:
Type:
Boolean

JS.Responsive.isPortrait()

Returns true if current device has display portrait oriented (height is larger than width).

Since:
  • 3.0.0

Source:
Returns:
Type:
Boolean

Events


changedOrientation