Scale the animation to fit within the container, maintaining aspect ratio. This ensures the entire animation is visible within the bounds.