Performance improvements by using CSS transitions