DEV Community

Discussion on: CSS TRANSITION PROPERTY

Collapse
rashidyaqoob profile image
rashidyaqoob Author

we are changing rotate property as well..

Collapse
mrtoxas profile image
mrtoxas • Edited on

Yep, but with the transition-property:background, you set the duration not only for changing the color, but also for background-position and background-size. background is shorthand css-property.
We must be careful and apply duration only to the properties that we change.