gpt4 book ai didi

html - 在同一个按钮上使用 2 个 animate.css 类

转载 作者:行者123 更新时间:2023-11-28 18:11:44 24 4
gpt4 key购买 nike

我正在尝试使用 Animate.css ( http://daneden.me/animate/ ) 制作一个动画按钮。

是否可以在同一个元素上有 2 个类?我希望 fadeInUpBig 发生一次,然后无限翻转。

感谢您的帮助,谢谢!

最佳答案

检查我的代码: http://jsfiddle.net/alexgrcs/GuvWq/4/

我下载了一个自定义构建的 animate.css,其中只有这些动画(“fadeInUpBig”和“flip”),并在同一个 .fullAnimation 类中声明了两个关键帧。

.fullAnimation {
-webkit-backface-visibility: visible !important;
-moz-backface-visibility: visible !important;
-o-backface-visibility: visible !important;
backface-visibility: visible !important;
-webkit-animation: fadeInUpBig 1s, flip 1s 1s infinite;
-moz-animation: fadeInUpBig 1s, flip 1s 1s infinite;
-o-animation: fadeInUpBig 1s, flip 1s 1s infinite;
animation: fadeInUpBig 1s, flip 1s 1s infinite;
-webkit-animation-fill-mode:both;
-moz-animation-fill-mode:both;
-ms-animation-fill-mode:both;
-o-animation-fill-mode:both;
animation-fill-mode:both;
}

看一下动画实例,其中一个关键帧在另一个关键帧之后被调用,为第二个关键帧添加 1 秒的延迟。您可以在本文中找到有关此方法的更多信息:http://www.css3files.com/animation/

希望对您有所帮助! :)

关于html - 在同一个按钮上使用 2 个 animate.css 类,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18522954/

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