Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

element-overlap

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

element-overlap - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

6

package.json
{
"name": "element-overlap",
"version": "0.0.5",
"description": "Trigger an callback when two DOM elements overlap",
"version": "0.0.6",
"description": "Trigger a callback when two DOM elements overlap",
"main": "lib/index.js",

@@ -10,3 +10,3 @@ "directories": {

},
"author": "Bryce Hanscomb",
"author": "Bryce Hanscomb <bryce@brycehanscomb.com>",
"license": "MIT",

@@ -13,0 +13,0 @@ "babel": {

# element-overlap
Trigger an callback when two DOM elements overlap.
Trigger a callback when two DOM elements overlap.

@@ -23,3 +23,3 @@ ## Usage Example

### `void listenForOverlap(element1, element2, callback, options))`
### `void listenForOverlap(element1, element2, callback, options)`

@@ -77,3 +77,3 @@ The main method to set up a listener for the overlap. Will call `callback` when the elements are

###### `listenOn` : < `string` | `Array.<string>`
###### `options.listenOn` : < `string` | `Array.<string>`

@@ -95,3 +95,3 @@ The method/s with which to check for overlaps (and subsequently trigger the `callback`).

###### `timerInterval` : < `number` >
###### `options.timerInterval` : < `number` >

@@ -108,3 +108,3 @@ How often the collision-detection should be checked, in milliseconds. Only used if

###### `requiredIntersection` : < string >
###### `options.requiredIntersection` : < string >

@@ -122,3 +122,3 @@ Determines what is considered a proper 'overlap' and subsequently trigger `callback`. The options

###### `callbackData` : < any >
###### `options.callbackData` : < any >

@@ -125,0 +125,0 @@ Arbitrary data to be passed to `callback` when it is eventually triggered. For example:

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