Allow gradient to change dynamically with transitions