[jquery] How do you fade in/out a background color using jquery?

How do I fade in text content with jQuery?

The point is to draw the user's attention to the message.

This question is related to jquery css background-color fade

The answer is

If you want to specifically animate the background color of an element, I believe you need to include jQueryUI framework. Then you can do:

$('#myElement').animate({backgroundColor: '#FF0000'}, 'slow');

jQueryUI has some built-in effects that may be useful to you as well.


Similar questions with jquery tag:

Similar questions with css tag:

Similar questions with background-color tag:

Similar questions with fade tag: