@keqingrong/dom-utils
Utilities for DOM, CSSOM
English | 简体中文
Installation
npm install @keqingrong/dom-utils
API
getPageScrollOffset()
getPageSize()
getViewportSize()
getElementBoundingRect(element)
isInViewport(element)
isOutOfViewport(element)
isIntersectWithViewport(element)
License
MIT © Qingrong Ke