Animate Numbers (provided by Dmitry)

Here's an example of animating numbers from Dmitry. Note the 'value' parameter that we can use to influence things inside the function which is based on Snaps timing and the duration we set.

var s = Snap("#svgout"); 

var t = s.text(50,50,0);

Snap.animate(0, 100, function (value) {
    t.attr({text: Math.round(value)});
}, 1000);


The actual svg markup looks like this (when you've clicked on run)....