timoxley

timoxley/offset

Get offset of an element within the document

JavaScript
59
11
MIT License

This project provides a lightweight utility to calculate the precise position (top and left coordinates) of any DOM element or text range relative to the document's top-left corner. It's designed for developers who need accurate element positioning for layouts, animations, or custom interactions without relying on a full library like jQuery. The simple API makes it easy to integrate into any web project requiring document-relative coordinates.

Total donated
Undistributed
Share with your subscribers:

Recipients

How the donated funds are distributed

Support the dependencies of timoxley/offset

Account's avatar
Test browser rendering/styling quirks. Extracted from jQuery
Account's avatar
Returns the `document` object from a DOM object
Account's avatar
check if an element is within the element
Account's avatar
A simple zero-configuration command-line http server

Support the repos that depend on timoxley/offset

Top contributors

timoxley's profile
timoxley
24 contributions
TooTallNate's profile
TooTallNate
9 contributions
cristiandouce's profile
cristiandouce
1 contributions
parshap's profile
parshap
1 contributions

Recent events

Kivach works on the Obyte network, and therefore you can track all donations.

No events yet