1.1.1 • Published 10 years ago

element-size v1.1.1

Weekly downloads
92,538
License
MIT
Repository
github
Last release
10 years ago

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.