New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

js-element-spy

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

js-element-spy

Detects your element in viewport and allows you to add a callback function.

latest
npmnpm
Version
1.1.2
Version published
Maintainers
1
Created
Source

js-element-spy

Detects your element in viewport and allows you to add a callback function.

Installation

Use npm to install js-element-spy.

npm install js-element-spy --save

Usage

import { elementSpy } from 'js-element-spy';

elementSpy(
  '.my-element',
  () => {
    // Set your logic here
  },
  'scroll'
);

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

FAQs

Package last updated on 10 Mar 2022

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