UNPKG

offset

Version:

Get the x/y offset of an element

18 lines (9 loc) 230 B
# 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