code is as follows. The requirement is to score a goal and disappear after 5 seconds. Animation is needed when it disappears. After disappearing, you need to clear the dom occupation site, otherwise there will be more and more pages and memory leaks.
setTimeout (function () {
$(".goalIn .goal-inner[data-id="+ids+"]").animate({
bottom:"-30px",
opacity:"0"
}).remove()
}, 5000);