npm.io
1.1.1 • Published 11 years ago

element-size

Licence
MIT
Version
1.1.1
Deps
0
Vulns
0
Weekly
0
Stars
13

element-size stable

Get the size of an element in pixels, including margins

Usage

NPM

[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.

Keywords