I think that both the games and anime are both wrong. I think that the pokemon evolves because as it battles its DNA changes. But so liitle, its unnoticable. Then, after tons of change on the inside, the pokemon suddenly gets all the change on the inside on the outside, in a glow of white light.