#transition
Shorthand property for transition-property
transition-duration
transition-timing-function
and transition-delay
.
Only transition-duration
is required.
transition: 1s;
transition-duration
is set to1s
transition-property
defaults toall
transition-timing-function
defaults toease
transition-delay
defaults to0s
transition: 1s linear;
transition-duration
is set to1s
transition-property
defaults toall
transition-timing-function
is set tolinear
transition-delay
defaults to0s
transition: background 1s linear;
transition-duration
is set to1s
transition-property
is set tobackground
transition-timing-function
is set tolinear
transition-delay
defaults to0s
transition: background 1s linear 500ms;
transition-duration
is set to1s
transition-property
is set tobackground
transition-timing-function
is set tolinear
transition-delay
is set to500ms
transition: background 4s, transform 1s;
You can combine multiple properties with their own transition duration.