I came across a solution on this website:
Although, the solution mentioned is specifically for determining if an element is visible within the viewport.
However: What I am trying to achieve is a bit different as I want to figure out if the element covers the entire viewport.