:animated Selector in jQuery

It helps to select any element that is currently animated:.

:animated Selector

// To change color of the animated element.

$(“.button”).click(function(){
    $(“:animated”).css(“background-color”,”yellow”);
});