transition
版本:CSS3
transitionCSS属性是
示例/* apply to 1 property */
/* property name | duration */
transition: margin-right 4s;
/* property name | duration | delay */
transition: margin-right 4s 1s;
/* property name | duration | timing function */
transition: margin-right 4s ease-in-out;
/* property name | duration | timing function | delay */
transition: margin-right 4s ease-in-out 1s;
/* apply to 2 properties */
transition: margin-right 4s, color 1s;
/* apply to all changed properties */
transition: all 0.5s ease-out;
/* global values */
transition: inherit;
transition: initial;
transition: unset;
浏览器支持