A workflow for modern frontend development.
npm install @pluginjs/viewport
viewport is a utility JavaScript library to control viewport.
#### Yarn
``javascript`
yarn add @pluginjs/viewport
#### NPM
`javascript`
npm i @pluginjs/viewport
CDN:
Development:
`html`
Production:
`html`
Parameters
| Name | Type | Description |
|||-|
| eventName | String | |Function
| func | | handler |Object
| instance | | instance |
Parameters
| Name | Type | Description |
|||-|
| eventName | String | |Function
| func | | handler |
Parameters
| Name | Type | Description |
|||-|
| eventName | String | |Function
| func | | handler |
Returns
| Name | Type | Description |
|||-|
| isIntersecting | Boolean` | |
Tested on all major browsers.
|
IE / Edge |
Firefox |
Chrome |
Safari |
Opera |
| --------- | --------- | --------- | --------- | --------- |
| IE11, Edge| last 2 versions| last 2 versions| last 2 versions| last 2 versions|
@pluginjs/viewport is Licensed under the GPL-v3 license.
If you want to use @pluginjs/viewport project to develop commercial sites, themes, projects, and applications, the Commercial license is the appropriate license. With this option, your source code is kept proprietary.
For purchase an Commercial License, contact us purchase@thecreation.co.
Copyright (C) 2022 Creation Studio Limited.