How to use CSS animations to improve user experience