I have a unordered list which i want to make to work in the following sense: li's that are not in viewport will be hidden (display:none), and when they reach the viewport i want them to become visible and fade in. I figured i have to work with the scroll offsets but i cant figure it out how to make it for for each li.
<div class="my_list">
<ul>
<li>1</li>
<li>2</li>
<li>3</li>
<li>4</li>
<li>5</li>
<li>6</li>
</ul>
</div>
.my_list ul li{
height:550px; /*example height*/
}