Proszę mi powiedzieć dlaczego gdy wywołam pierwszy kod z css to działa a jeśli już robię przez animate to nie chce ruszyć
$(this).css('backgroundColor', 'red');
drugi kod:
$(this).animate({ backgroundColor: 'red', }, 300);
$(this).css('backgroundColor', 'red');
$(this).animate({ backgroundColor: 'red', }, 300);