This function returns the side the element is out of view on (right, left or both)
The container to check if the element is in view of.
The element to check if it is view
right if the element is of the right, left if element is off the left or both if it is off on both sides.
This function returns the side the element is out of view on (right, left or both)