Check if a DOM element is currently within the visible viewport
Target HTMLElement to check
Optional margin offset in pixels to expand or shrink the viewport check boundary
Boolean indicating whether element is in viewport
Check if a DOM element is currently within the visible viewport