https://github.com/anthonyshort/offset
Get the xy offset of an element
https://github.com/anthonyshort/offset
Last synced: 3 months ago
JSON representation
Get the xy offset of an element
- Host: GitHub
- URL: https://github.com/anthonyshort/offset
- Owner: anthonyshort
- Created: 2013-01-24T09:07:28.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2017-04-29T19:40:07.000Z (about 8 years ago)
- Last Synced: 2025-04-02T18:54:55.125Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 109 KB
- Stars: 12
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- Changelog: History.md
Awesome Lists containing this project
README
# offset
Get the xy offset of an element
## Installation
$ component install anthonyshort/offset
## API
offset(document.querySelector('#foo')).top
offset(document.querySelector('#bar')).left## License
MIT