【发布时间】:2012-04-08 01:51:17
【问题描述】:
目前我正在通过更改悬停时的背景颜色和字体颜色来设置文本框的样式:
transition: background-color 1s, color 1s;
我现在想通过使用过渡延迟来更改背景颜色之后的颜色。问题是转换延迟不采用我想延迟的属性(即颜色)。有没有办法只延迟特定属性?
【问题讨论】:
标签: css css-transitions
目前我正在通过更改悬停时的背景颜色和字体颜色来设置文本框的样式:
transition: background-color 1s, color 1s;
我现在想通过使用过渡延迟来更改背景颜色之后的颜色。问题是转换延迟不采用我想延迟的属性(即颜色)。有没有办法只延迟特定属性?
【问题讨论】:
标签: css css-transitions
转换延迟是特定于属性的。
例如
transition: background-color 1s linear 2s, color 1s;
transition: property name | duration | timing function | delay
使用速记时,似乎还需要指定计时函数。
(Source)
【讨论】: