inViewport(element: Element, rect?: DOMRect)

Returns `true` if all edges of the element passed to the function are inside of the viewport

Test

CSS Properties

inViewport() =>
© 2022
🐞