Smooth transition from one color to another.

    3 answers 3

    Here is a good example: Javascript fading - smoothly changing colors or many others on request fade javascript.

      Can so

      $('#element').click(function() { $('#element2').fadeTo(400, 0.5); }); 

      The second element will be assigned a transparency value of 0.5 per 400 milliseconds.

      And if you mean a smooth color change to another, then you can use the effect jquery-ui http://jqueryui.com/demos/animate/

        You need a color animation plugin. You can take it from there or from here .