cc-inviewport

1.0.13 • Public • Published

cc-inviewport

Introduction

To determine whether the HTMLElement is in the viewport.

Installation

CommonJS

Install
npm install cc-inviewport --save

ES6

Install
npm install cc-inviewport --save

Script

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

Readme

Keywords

none

Package Sidebar

Install

npm i cc-inviewport

Weekly Downloads

0

Version

1.0.13

License

MIT

Unpacked Size

6.84 kB

Total Files

8

Last publish

Collaborators

  • chun_chan