I am currently using javascript to add some animation to a rectangle and once the animation is finished, i set the box to not be displayed. Take a look below for the code to do that.
Javascript
$(document).ready(function() {
$(".filled-rectangle").stop().animate({top:'20px'}, 5000).queue(function(next){
$(".filled-rectangle").css('display', 'none');
});
});
Now I want to add some more boxes in a container like this,
HTML
<div class="container">
<div class="filled-rectangle"></div>
</div>
The code above is right now working for one div, .filled-rectangle I want to add more divs, and use the same animation for all divs.