javascript - Firefox 中的 CSS3 淡入效果?
问题描述
对于我的导航,我对子导航使用 CSS 淡入效果,但它仅适用于 Chrome,不适用于 Firefox。
.mega .hover ul.level-2 li:nth-child(5n+1) {
-webkit-animation-delay: 0.2s;
animation-delay: 0.2s;
}
.mega .hover ul.level-2 li:nth-child(5n+2) {
-webkit-animation-delay: 0.4s;
animation-delay: 0.4s;
}
.mega .hover ul.level-2 li:nth-child(5n+3) {
-webkit-animation-delay: 0.55s;
animation-delay: 0.55s;
}
.mega .hover ul.level-2 li:nth-child(5n+4) {
-webkit-animation-delay: 0.65s;
animation-delay: 0.65s;
}
这是示例:http: //jsfiddle.net/rzf7w69u/28/
谢谢你的帮助。
解决方案
为 Firefox 和 Opera 使用前缀
-webkit-animation-delay: 0.4s;
-moz-animation-delay: 0.4s;
-o-animation-delay: 0.4s;
推荐阅读
- c# - 使用 TableEntity 模拟多重继承
- javascript - 如何通过猫鼬中的用户ID一次选择两个表(文档)值?
- codeigniter - 在编辑表单中获取多选的值
- mongodb - 如何在 Stitch 的事务下运行 MongoDB 多个查询?
- python - 如何在heroku上解决这个数据库(Flask)问题?
- elm - 如何将 Elm 0.18 日期函数重写为 Elm 0.19
- sass - 在 gatsby 中全局包含 sass
- reactjs - 在 react ssr 应用程序中调用 firebase 消息传递方法时,如何修复 self 未定义?
- swift - NotificationCenter.Publisher VS PassThroughSubject
- java - 如何在 AsyncTask 中调用片段?