Use CSS transitions for improved animation