Socket
Socket
Sign inDemoInstall

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


Version published
Weekly downloads
19
increased by1800%
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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc