I want to trigger an animation on a list of elements and have each iteration increase in delay a bit. I have what I've done so far here:
var timer = 1000;
$('div').each(function(){
setTimeout(function(){
$('div').animate({
width:200,
height:200,
opacity:1
}, 1000);
}, timer);
timer += 1000;
});
There aren't any errors and it technically works, but they all animate at the same time. I know it's very similar (practically identical) to this, similar code, but for some reason it's not working. What am I missing?