The force on the moving charged particle in magnetic field is `vecF=q(vecvxxvecB)`. So `vecF` is always perpendicular to the particle velocity `vecv`. Hence the magnitude of velocity remains unchanged, only the direction changes. Thus the particle will leave the varrying magnetic field with its initial velocity, but in a different direction.