Fix flip card janky animation in some scenarios.