signalizejs/sizes

Get computed element sizes.

Installation

const { height, width } = await signalize.resolve('sizes');

API

height

Get the height of an element or document.

height(document.querySelector('#element'));

width

Get the width of an element or document.

const { width } = signalize;

width(document.querySelector('#element'));