I have a simple script that changes the color of my navigation links when the mouse is hovered over it:
function fadeToNormal(element) {
element.style.color = "#000000";
}
function fadeToSelected(element) {
element.style.color = "#990099";
}
Now I want to try to "fade" the colors of the links for a better looking transition. Is there any way to do this with pure JavaScript?