transition:<single-transition>[,<single-transition>]*
<single-transition> = [ none | <single-transition-property> ] || <time> || <single-transition-timing-function> || <time>
默认值:看每个独立属性
适用于:所有元素,包含伪对象:after和:before
继承性:无
动画性:否
计算值:看每个独立属性
媒体:交互
缩写方式:
transition:
border-color .5s ease-in .1s,
background-color .5s ease-in .1s,
color .5s ease-in .1s;
拆分方式:
transition-property: border-color, background-color, color;
transition-duration: .5s, .5s, .5s;
transition-timing-function: ease-in, ease-in, ease-in;
transition-delay: .1s, .1s, .1s;
拆分方式:
transition-property: border-color, background-color, color;
transition-duration: .5s;
transition-timing-function: ease-in;
transition-delay: .1s;
缩写方式:
transition: all .5s ease-in .1s;
拆分方式:
transition-property:all;
transition-duration: .5s;
transition-timing-function: ease-in;
transition-delay: .1s;
IE | Edge | Firefox | Chrome | Safari | Opera | iOS Safari |
Android Browser |
Blackberry Browser |
Opera Mobile |
Chrome for Android |
Firefox for Android |
IE Mobile |
UC Browser for Android |
Samsung Internet |
QQ Browser |
Baidu Browser |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5.5-9 | 12+ | 2-3.6 | 4-25 -webkit- | 3.1-5 -webkit- #1 | 9-10.1 | 3.2-5.1 -webkit- #1 | 2.1-4.3 -webkit- | 7 -webkit- | 10-11.5 -o- #1 | 61 | 56 | 10+ | 11.4 | 4+ | 1.2 | 7.12 |
10+ | 4 -moz- #1 | 26+ | 5.1-6 -webkit- | 10.5-11.6 -o- #1 | 6.0-6.1 -webkit- | 4.4+ | 10 | 12 -o- | ||||||||
5-15 -moz- | 6.1+ | 12 -o- | 7.0+ | 12.1+ | ||||||||||||
16+ | 12.1+ |