Add class to div when he visible
<p>How can I add class to some element (<code>&lt;div&gt;</code>) when those on visible on a screen or maybe his position in the center of the screen and remove this class when the page scrolled down or up?</p>