Checks if the target is visible in the browser viewport.
target
Element, EventTarget, or CSS selector.
true if the target is in the viewport.
true
InvalidElementError if the specified target wasn't found.
InvalidElementError
Checks if the
target
is visible in the browser viewport.