add transition effect to background css code example
Example 1: transition syntax css
transition: property duration transition-timing-function delay;
/*Shorthand Property*/
Example 2: css opacity transition
div {
transition: opacity seconds;
}