Use CSS3's transition property for animations.