1.0.13 • Published 6 years ago
cc-inviewport v1.0.13
cc-inviewport
Introduction
To determine whether the HTMLElement is in the viewport.
Installation
CommonJS
Install
npm install cc-inviewport --saveES6
Install
npm install cc-inviewport --saveScript
Install
<script src="https://unpkg.com/cc-inviewport/dist/inviewport.js"></script>inviewport is registered in window
syntax
Code
inviewport(HTMLElement, offset);Parameters
- HTMLElement
HTML element
- offset
horizontal offset