Give something like this a try:
<img src="http://i.imgur.com/HyaEu3E.png" border="0" />
SlowInterval = How often (in seconds) to slow down the animation speed.
SlowRate = How much the animation speed will be reduced at each interval.
If the example above, if my initial animation speed is 5, the animation speed will completely stop after 10 seconds.