value interpolation function in animator