If by "HTML5 Animation" you mean you're going to use a canvas, you can readily feature-detect that rather than browser-detecting. Feature detection, whenever possible, is a much better idea.
In this case, you can easily feature-detect canvas support (this particular function is from this answer):
function isCanvasSupported(){
var elem = document.createElement('canvas');
return !!(elem.getContext && elem.getContext('2d'));
}
Then in your JavaScript, if isCanvasSupported()
is falsey, dynamically insert your fallback content instead.
More about feature-detecting: