I am wondering for some time now, how did SO do this animation on answers when you click on link answer, answer divs color changes for some time and it reverts back, I’m sure this question has been asked before but I just couldn’t find it. Or this random example :
UPDATE
I see some good answers, but not quite what I’m looking for or maybe I’m sleepy , for ex:
I have a div with id #footer , so if I type http://mysite.com#footer it will scroll me down to the footer div, how can I pass the argument which div to animate by just visiting the url http://mysite.com#footer
Using jQuery’s Color plugin is the easiest way to animate colors:
http://plugins.jquery.com/project/color
Once that plugin is included, you can animate any colors. For example, to set an element to yellow and then slowly fade it back (over 5 seconds, say):
Of course, you can use hex colors instead of the color names as well (ex. “#FFFF00” instead of yellow).