我可以让动画在 1 秒 40 毫秒后运行,而不以毫秒为单位编写,例如:animation-delay: 140ms;
最佳答案
可以的,试试这样写
animation-delay: 1.4s;
-webkit-animation-delay:1.4s; /* Safari and Chrome */
animation-delay: 1.4s; /* W3C and Opera */
-moz-animation-delay: 1.4s; /* Firefox */
甚至像这样
animation-delay: 1s, 40ms;
-webkit-animation-delay:1s, 40ms; /* Safari and Chrome */
animation-delay: 1s, 40ms; /* W3C and Opera */
-moz-animation-delay: 1s, 40ms; /* Firefox */
看这里https://developer.mozilla.org/en-US/docs/Web/CSS/animation-delay
关于css - 我可以为 CSS animation-delay 属性使用多个值吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21396854/