gpt4 book ai didi

css - 短代码中转换属性的转换

转载 作者:行者123 更新时间:2023-11-28 03:39:58 25 4
gpt4 key购买 nike

我对如何正确编写这段代码感到困惑?

选项 1:

.line-all {
-webkit-transition: transform 0.4s cubic-bezier(0.4, 0.01, 0.165, 0.99);
transition: transform 0.4s cubic-bezier(0.4, 0.01, 0.165, 0.99);
}

.animated .line-all {
-ms-transform: translate(0px, 3px) rotate(-45deg);
-webkit-transform: translate(0px, 3px) rotate(-45deg);
transform: translate(0px, 3px) rotate(-45deg);
}

选项 2:

.line-all {
-webkit-transition: transform 0.4s cubic-bezier(0.4, 0.01, 0.165, 0.99), -webkit-transform 0.4s cubic-bezier(0.4, 0.01, 0.165, 0.99), -ms-transform 0.4s cubic-bezier(0.4, 0.01, 0.165, 0.99);
transition: transform 0.4s cubic-bezier(0.4, 0.01, 0.165, 0.99), -webkit-transform 0.4s cubic-bezier(0.4, 0.01, 0.165, 0.99), -ms-transform 0.4s cubic-bezier(0.4, 0.01, 0.165, 0.99);
}

.animated .line-all {
-ms-transform: translate(0px, 3px) rotate(-45deg);
-webkit-transform: translate(0px, 3px) rotate(-45deg);
transform: translate(0px, 3px) rotate(-45deg);
}

选项 3:

.line-all {
-webkit-transition: transform 0.4s cubic-bezier(0.4, 0.01, 0.165, 0.99), -webkit-transform 0.4s cubic-bezier(0.4, 0.01, 0.165, 0.99), -ms-transform 0.4s cubic-bezier(0.4, 0.01, 0.165, 0.99);
transition: transform 0.4s cubic-bezier(0.4, 0.01, 0.165, 0.99);
}

.animated .line-all {
-ms-transform: translate(0px, 3px) rotate(-45deg);
-webkit-transform: translate(0px, 3px) rotate(-45deg);
transform: translate(0px, 3px) rotate(-45deg);
}

还有其他选择吗?或者从上面的 3 中选择哪一个是正确的?

最佳答案

刚刚得到我的答案并且工作得很好

.line-all {
-webkit-transition: -webkit-transform 0.4s cubic-bezier(0.4, 0.01, 0.165, 0.99);
transition: transform 0.4s cubic-bezier(0.4, 0.01, 0.165, 0.99);
}

.animated .line-all {
-ms-transform: translate(0px, 3px) rotate(-45deg);
-webkit-transform: translate(0px, 3px) rotate(-45deg);
transform: translate(0px, 3px) rotate(-45deg);
}

关于css - 短代码中转换属性的转换,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44276909/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com