element-size

Get the size of an element in pixels, including margins

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
element-size
1301.1.19 years ago9 years agoMinified + gzip package size for element-size in KB

Readme

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.