【问题标题】:css3 transition delay of specific attribute特定属性的css3转换延迟
【发布时间】:2012-04-08 01:51:17
【问题描述】:

目前我正在通过更改悬停时的背景颜色和字体颜色来设置文本框的样式:

transition: background-color 1s, color 1s;

我现在想通过使用过渡延迟来更改背景颜色之后的颜色。问题是转换延迟不采用我想延迟的属性(即颜色)。有没有办法只延迟特定属性?

【问题讨论】:

    标签: css css-transitions


    【解决方案1】:

    转换延迟是特定于属性的。

    例如

    transition: background-color 1s linear 2s, color 1s;
    transition: property name | duration | timing function | delay
    

    使用速记时,似乎还需要指定计时函数。

    (Source)

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-05-22
    • 2013-06-11
    • 1970-01-01
    • 2011-04-26
    相关资源
    最近更新 更多