• This function returns the side the element is out of view on (right, left or both)

    Parameters

    • container: HTMLElement

      The container to check if the element is in view of.

    • element: HTMLElement

      The element to check if it is view

    Returns string

    right if the element is of the right, left if element is off the left or both if it is off on both sides.