I have a bunch of divs with class .container scattered across my page. I want to trigger an animation with jquery when I have scrolled to a .container but I want the animation to be only on that div.
$('.container').waypoint(function(direction){
$this = $(this);
$(function(){
//$this here selects the last div with class .container
});
},{offset: 'bottom-in-view'});
How can I select only the current div I've scrolled to?