1.0.13 • Published 5 years ago

cc-inviewport v1.0.13

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

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

1.0.13

5 years ago

1.0.12

5 years ago

1.0.11

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago