I didn't use a color rect - I just modified the root modulate directly.
I mean, you can encapsulate the transition logic to a node that would be specialized in that. Hmm I think I have something to experiment with :D