I have a div which has some text content( eg: My Name ) and the div is in RED background colour
and a button.
My need :
If I have clicked the button , I need to change the background of a div from RED to BLUE like Progress bar
for 10 seconds.Something like,
start from 0 sec
=
==
===
====
=====
======
=======
========
=========
==========
end with 10 seconds
I have to change the bgColor gradually from start to end for upto 10 secs.
So I have used the JQuery animate() method .But I have no luck to do that.
What I have tried :
$("button").click(function(){
$('#myDivId').animate({background-color:'blue'},10000);
});
If this is not possible , can anyone please suggest me some plugin's to do that.
Hope our stack users will help me.