element-size
v1.1.1
Published
Get the size of an element in pixels, including margins
Downloads
745,896
Maintainers
Readme
element-size
Get the size of an element in pixels, including margins
Usage
[width, height] = size(element)
Given a DOM element
, return an array containing that element's width
and
height
in pixels.
License
MIT. See LICENSE.md for details.