Related extension of dom-helpers
npm install --save dom-helpers dom-helpers-extra
import css from "dom-helpers/css";
import offset from "dom-helpers-extra/offset";
css(node, "display");
offset(node);
offset(node, {
left: 100,
top: 100,
});
offset(node: HTMLElement, coords?: {left?: number, top?: number})
domReady(fn: () => void)
hasScroll(node: HTMLElement, dir?: "x" | "y" = "y"): boolean
isScrollEnd(node: HTMLElement, dir?: "x" | "y" = "y"): boolean
ResizeObserver
useresize-observer-polyfill
scrollIntoView
alias ofdom-helpers/scrollTo