So for something like this:
Jquery:
$(document).ready(function(){
var container = $('.rotate_container');
var images = container.find('img');
container.everyTime(10, function (){
images.each(function() {
container.animate({scrollTop: $(this).offset().top - 165}, 2000).delay(1000);
});
});
});
What's the point of making the variables "container" and "images"? If they're each only used once, how does that help anything at all?
thanks.