What I Basically Want is to change the z-index ( Other CSS Property, EG: Color ) of a div when it's in the Viewport of the Viewer (Using JS, CSS or any other way).
<HTML>
<head>
</head>
<body>
<!--Something Here-->
<div>Hello</div> <!--Initialy this is what is in the Viewport -->
<div>You Are Here</div> <!--When this comes in to the Viewport z-index of this change to higher value-->
<div>Bye</div> <!--when in to the Viewport z-index of this change to higher value-->
<!--Something Here-->
</body>
<HTML>
Is there a Way to Achieve This Without Calculating Positions of Elements?