Use CSS3 animations when available.