animateColor-to-from.svg   [plain text]


<svg xmlns='http://www.w3.org/2000/svg'>
  <rect width='100' height='100'>
    <animateColor attributeName="fill" from='blue' to='green' dur='3s' fill='freeze' />
  </rect>
  <text x='10' y='120'>The rect should animate from blue to green over 3 seconds</text>
</svg>