css - 我可以为 CSS animation-delay 属性使用多个值吗?

标签 css

我可以让动画在 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/

相关文章:

html - div col md 6中的不同内容彼此相等

html - body 溢出背景

css - Angular Bootstrap 中不存在 pull-right

javascript - 高度设置为自动时 div 的定位

javascript - 使用 document.createElement onClick

html - CSS 列表填充随每个级别增加

php - Zend 框架 2 单选按钮

CSS 网格——理解文本的网格

html - 在切换菜单位于图像后面之后

菜单 “float: bottom” 的 HTML/CSS 定位