Observe when element resizes. Specify interval to debounce, uses 100ms by default.
interval
const o = resizeObservable(myEl, 500);o.subscribe(() => { // called 500ms after last resize}); Copy
const o = resizeObservable(myEl, 500);o.subscribe(() => { // called 500ms after last resize});
Optional
Tiemout before event gets triggered
Observe when element resizes. Specify
interval
to debounce, uses 100ms by default.