【发布时间】:2015-03-31 05:55:34
【问题描述】:
我正在尝试让弹跳鼠标动画在我的网站上运行。 完全相同的代码可以在另一个网站上运行,而在我的网站上它什么也没做。
这是CSS:
.mouse {
display: block;
margin: 0 auto;
text-align: center;
width: 100%;
font-size: 32px;
color: #fff;
z-index:9999;
position: absolute;
color: #e8e8e8;;
bottom: 240px;
}
.mouse i {
-webkit-animation: todown 1.2s infinite linear;
transition: all 0.3s ease-in-out;
}
HTML:
<a href="#x11" class="mouse">
<i class="fa fa-angle-double-down icon-option"></i>
</a>
在此网站上,您可以看到我正在尝试创建的向下滚动图标:http://noxxar.com/demo/uralco/
【问题讨论】:
-
todown的关键帧在哪里? -
另外,您需要查看正确的前缀以实现跨浏览器动画兼容性。
-moz-、-webkit-等 -
关键帧?我不知道如何设置这些。一旦它工作(moz webkit等),我也会添加其他人
-
这是我正在尝试重新创建的动画箭头:themeforest.net/item/…
标签: css css-animations