Visual viewport API
Widely available
The visualViewport
API provides a way to query and modify the user-visible viewport of a web page.
To learn more, see
Visual Viewport API at MDN.
Compatibility
- Chrome 61 Released on 2017-09-05
- Chrome Android 61 Released on 2017-09-05
- Edge 79 Released on 2020-01-15
- Firefox 91 Released on 2021-08-10
- Firefox for Android 68 Released on 2019-07-09
- Safari 13 Released on 2019-09-19
- Safari on iOS 13 Released on 2019-09-19