Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stagas/get-element-offset
Get accurate DOM element offset.
https://github.com/stagas/get-element-offset
dom element offset
Last synced: 14 days ago
JSON representation
Get accurate DOM element offset.
- Host: GitHub
- URL: https://github.com/stagas/get-element-offset
- Owner: stagas
- License: mit
- Created: 2022-03-17T03:35:12.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-12-07T16:32:21.000Z (almost 2 years ago)
- Last Synced: 2024-09-14T15:49:44.926Z (2 months ago)
- Topics: dom, element, offset
- Language: TypeScript
- Homepage:
- Size: 13.7 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
get-element-offsetGet accurate DOM element offset.
npm i get-element-offset
pnpm add get-element-offset
yarn add get-element-offset
## API
#
getElementOffset
(el, maxDepth)
## Contributing
[Fork](https://github.com/stagas/get-element-offset/fork) or [edit](https://github.dev/stagas/get-element-offset) and submit a PR.
All contributions are welcome!
## License
MIT © 2022 [stagas](https://github.com/stagas)