Capítulo 280 de 411
Returns the x/y gap between two elements' chosen reference points, correctly accounting for any nested transforms on either — result is expressed in the fromElement's parent's coordinate system.
| Parameter | Type | Description |
|---|---|---|
| fromElement | Element | window | element the distance is measured from |
| toElement | Element | window | destination element (must be a real reference) |
| fromOrigin, toOrigin | Array | Object | String | reference points on each element |
Returns: {x, y}.