This lightweight JavaScript allows for easy color transitions. Add fading effects to tables, divs and more. You can target an elements background, border or text color.
Below is the command to call the function.
colorFade('divid', 'background', 'ece7b4', 'f9bcbc', 25, 30)
The first parameter is the id of the element you are targeting. The second is the property to fade which can be the background, border or text. The third is the hex value of the starting color. The third is the hex value to fade to. The fourth and fifth are both optional. The first is the the number of times to divide the color difference and the last is the transition speed.
This script has been tested in all major browsers and is available free of charge for both personal or commercial projects under the creative commons license. Community support is available here. Paid support is also available, contact me for details.
Click here to download the script.
Update 5/5/2008 – I have tweaked a few things and integrated some performance improvements based on Nate’s suggestions.

Pingback: Webmaster Libre | Transiciones de color con Javascript
Pingback: » JavaScript Color Fading Script Webcreatives
Pingback: JavaScript Color Fading Script
Pingback: Intenta » Blog Archive » Links 05-05-2008
Pingback: Max Design - standards based web design, development and training » Some links for light reading (6/5/08)
Pingback: Exceptional Ajax/javascript Techniques (Recently Created)
Pingback: 30 recently created exceptional ajax javascript techniques
Pingback: Leigeber: Web Development Blog | CNET.ro
Pingback: StarryNight » Blog Archive » 最新ajax特效30则
Pingback: Codigos Web » Blog Archive » Transiciones de color con Javascript
Pingback: Ajax/javascript Techniques | Design it
Pingback: ajax特效 | forcto.com
Pingback: 30个精挑细致的Ajax和Javascript 技巧 | 帕兰映像
Pingback: gamma agency – javascript color fading
Pingback: Sharebrain JavaScript Color Fading Script »
Pingback: Exceptional Ajax/javascript Techniques (Recently Created) | amitkosti.name