slanw, `lerp()` is a system expression that allows you to smoothly change from one value to another. If you read the definition for it, then at first it may sound a little complicated, but basically, it allows for exactly what you are looking for.
From the Manual:
"lerp(a, b, x) Linear interpolation of a to b by x. Calculates a + x * (b - a)."