Quaternions? You just need some mathematic function.
Lerp
is commonly used to change value over time creating animation, see e.g. this unity question or here is some implementation.