html 鼠标滚轮动画CSS图标| http://jsfiddle.net/cmajo9h6/
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了html 鼠标滚轮动画CSS图标| http://jsfiddle.net/cmajo9h6/相关的知识,希望对你有一定的参考价值。
<style>
/* ---------------------------------------------- /*
* Mouse animate icon
/* ---------------------------------------------- */
.mouse-icon {
border: 2px solid #000;
border-radius: 16px;
height: 40px;
width: 24px;
display: block;
z-index: 10;
opacity: 0.7;
}
.mouse-icon .wheel {
-webkit-animation-name: drop;
-webkit-animation-duration: 1s;
-webkit-animation-timing-function: linear;
-webkit-animation-delay: 0s;
-webkit-animation-iteration-count: infinite;
-webkit-animation-play-state: running;
-webkit-animation-name: drop;
animation-name: drop;
-webkit-animation-duration: 1s;
animation-duration: 1s;
-webkit-animation-timing-function: linear;
animation-timing-function: linear;
-webkit-animation-delay: 0s;
animation-delay: 0s;
-webkit-animation-iteration-count: infinite;
animation-iteration-count: infinite;
-webkit-animation-play-state: running;
animation-play-state: running;
}
.mouse-icon .wheel {
position: relative;
border-radius: 10px;
background: #000;
width: 2px;
height: 6px;
top: 4px;
margin-left: auto;
margin-right: auto;
}
@-webkit-keyframes drop {
0% {
top: 5px;
opacity: 0;
}
30% {
top: 10px;
opacity: 1;
}
100% {
top: 25px;
opacity: 0;
}
}
@keyframes drop {
0% {
top: 5px;
opacity: 0;
}
30% {
top: 10px;
opacity: 1;
}
100% {
top: 25px;
opacity: 0;
}
}
</style>
<div class="mouse-icon"><div class="wheel"></div></div>
以上是关于html 鼠标滚轮动画CSS图标| http://jsfiddle.net/cmajo9h6/的主要内容,如果未能解决你的问题,请参考以下文章
简单的圆形图标鼠标hover效果 | CSS3教程
html 禁用鼠标滚轮对网页滚动条的控制怎么实现?
求大神指点jquery鼠标滚轮事件的使用方法,小白(html)一枚,求赐教
怎样实现鼠标滚轮翻页时,当某个div进入窗口时该div的动画播放,div离开窗口时动画回放。
删除 HTML 滚动条但允许鼠标滚轮滚动 [重复]
CSS 导航:当鼠标悬停在图标上时,图标应替换为文本链接