colorTransition is an Angular animation trigger that interpolates between two CSS colors passed in params. The trigger's value selects which of the named params (color1 / color2) the element animates toward; switching the value re-runs the transition.