title: Fading text color using JavaScript
body: <p>I have a simple script that changes the color of my navigation links when the mouse is hovered over it:</p>
  
  <pre><code>function fadeToNormal(element) {
      element.style.color = "#000000";
  }
  
  function fadeToSelected(element) {
      element.style.color = "#990099";
  }
  </code></pre>
  
  <p>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?</p>