object-transit
demo
Playground
Transition to
{ "bg1": "#0fc", "bg2": "#f00", "scale": 1.2, "left": 10, "count": 0 }
Result
Gradient
#cf0 #0fc #ff0 #f0c #fc0
Switch