inViewPort give you the opportunity to add action when an element is or is not in the viewport