I got this function which adds a div each second. it then moves across the screen, and I'd like for it to remove the divs once they're outside the screen. Is it possible to "attach" such a timer to the divs as I create them?
function deployRandom(){
$(".bottomEvents").append("<div class='floatingDiv'>hello world</div>")
$(".floatingDiv").animate({
marginLeft: "+=250px",
}, 1000 );
}