Webanizr Logo
Open / sluit menu
Module viewport

The module viewport helps to correct viewport settings on different devices.

syntax

webanizr.collect('viewport', parameters, callback);

parameters

Viewport accepts the following parameters:

query__selection (required)

The query selection to the elements that need to be checked for viewport settings.

height__element (optional)

The requested height for the element(s). Use the vh metric to describe the desired height. 90vh = 90% of the available height.

callback

The callback is called after the elements are corrected. The callback function is called with empty data.

demo

https://cdn.cpmodules.webanizr.com/demo/responsive-screen-height/index.html