transition-property: background; transition-duration: 0.3s; transition-timing-function: linear; transition-delay: 0s;Here is the same logic using the shorthand 'transition' property. Four lines become a single line.
transition: background 0.3s linear 0s;
Shorthand Property List
animation background border column-rule columns display flex font font-variant grid grid-column grid-row grid-template line-stacking list-style margin mask mask-border outline overflow padding pause rest text-decoration text-emphasis transition