How to use lerp and easing functions to change a property from one value to another in an interesting way