More robust animation support detection

Animation support and prefix detection rewritten according to MDN guide: https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Using_CSS_animations/Detecting_CSS_animation_support