1In CSS, you can't transition a background gradient. It jumps from one gradient to the other immediately, with no smooth transition between the two. He documents a clever tactic of positioning a pseudo element covering the element with a different background and transitioning the opacity of that pseudo element.
1#background {
2 background-image: linear-gradient(to left, #4B2C4C , #151F28);
3}