API Documentation

for 0.0.1
Show:

DOM Class

DOM helper class gives easy access to some basics calculations/manipulations frequently done on DOM elements

Item Index

Methods

Methods

getElementPosition

(
  • el
)
Object static

Get an element's position within the document taking into account the scroll positions

Parameters:

  • el Element

    The DOM element

Returns:

Object:

the position of the element as {x, y}