gpt4 book ai didi

CSS3 属性动画填充模式 : What's the difference with "both" and "forwards"

转载 作者:太空宇宙 更新时间:2023-11-04 00:08:57 25 4
gpt4 key购买 nike

“animation-fill-mode: both”和“animation-fill-mode: forwards”有什么区别??在我看来,它们都保留了最后一个关键帧设置的计算值。谁能举个例子吗?

最佳答案

animation-fill-mode: both 结合了 animation-fill-mode: forwardsanimation-fill-mode: backwards。当指定 animation-fill-mode: backwards 时,动画开始时会立即应用动画中第一个关键帧的值,即使存在动画延迟。如果填充模式:向后,或两者都没有指定,那么第一个关键帧直到动画延迟之后才会应用。您可以阅读更多in the spec.

关于CSS3 属性动画填充模式 : What's the difference with "both" and "forwards",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13789424/

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