I'm using http://imakewebthings.com/jquery-waypoints and having 5 classes (staffmember), at the moment waypoints fires on all the classes at once when getting the first class. How to stage it so that I can add as you pass through the list?
<ul id="staff">
<li class="staffmember"></li>
<li class="staffmember"></li>
<li class="staffmember"></li>
<li class="staffmember"></li>
<li class="staffmember"></li>
</ul>
jQuery
$('.staffmember').waypoint(function(direction) {
jQuery('.staffmember').addClass('on').next();
});
Thanks