element-overlap
Advanced tools
Comparing version 0.0.5 to 0.0.6
{ | ||
"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: |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
19198
0