Get the difference in position between two elements
$ npm install --save position-diff
var positionDiff = require('position-diff')
positionDiff(el1, el2)
//=> {x, y}
Required
Type: HTMLElement
HTML elements. The position of the first will be subtracted from the second and {x, y}
(Number
) is returned.
Type: boolean
Default: false
Lorem ipsum.
MIT © Ben Drucker