jQuery’s plugin called “inOutViewClass”. It checks each matched elements to see whether it’s in the view or not; then add “inViewClass” or “outViewClass” based on its condition.