🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

cc-inviewport

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cc-inviewport

### Introduction

1.0.13
latest
Source
npm
Version published
Weekly downloads
8
-69.23%
Maintainers
1
Weekly downloads
 
Created
Source

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

FAQs

Package last updated on 20 Aug 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts