gtxyzz

CSS animation-delay 属性 运动,动画元素,div

gtxyzz web技术 2022-07-07 492浏览 0

CSS animation-delay 属性 运动,动画元素,div

实例

等待两秒,然后开始动画:

div
{
animation-delay:2s;
-webkit-animation-delay:2s; /* Safari 和 Chrome */
}

定义和用法

animation-delay 属性定义动画何时开始。

animation-delay 值以秒或毫秒计。

提示:允许负值,-2s 使动画马上开始,但跳过 2 秒进入动画。

语法

animation-delay: time;

animation-delay 属性。

继续浏览有关 css 的文章
发表评论