目前我正在通过在悬停时更改其背景颜色和字体颜色来设置文本框样式:
transition: background-color 1s, color 1s;
我现在想通过使用transition-delay来改变背景颜色之后的颜色。问题是过渡延迟不会采取我想延迟的属性(即颜色)。有没有办法只延迟特定的属性?
答案 0 :(得分:76)
过渡延迟属于特定属性。
例如
transition: background-color 1s linear 2s, color 1s;
transition: property name | duration | timing function | delay
使用速记时,似乎还需要指定计时功能。
(Source)