Change animation to use transforms for better performance.