Skip to main content

Screen

Show/hide elements according to the viewport width/height

AttributeTypeDefaultDescription
typeSTRINGshowDefine the action to apply. Either show or hide
orientationSTRINGhorizontalDefine what viewport size to use. Either horizontal or vertical
fromINTEGER0Minimum viewport size to apply the action
toINTEGER0Maximum viewport size to apply the action
Example
<behavior name="fx1" fx="screen" type="hide" orientation="horizontal" to="500" />

Hide the element until the viewport is at least 500 pixels wide.