Optimize transition animations