Keep element in view while scrolling using jQuery

Keep element in view while scrolling using jQuery