满意回答
其实css3有两种方慕蛋辉式实现这个效果:近满 1. css3 过度transition.class{position:relative;-webkit-transition:;top;10s;linear;;/*top;时间(用秒计算)s;linear;*/-moz-transition:;top;10s;linear;-o-transition:;top;10s;linear;transition:;top;10s;linear;}.class:hover{top:100px;}详见:http://www.w3school.com.cn/css3/css3_transition.asp 2. css3 动画animation@-webkit-keyframes;myfirst{from;{top:;0;}to;{top:;100px;}}@-moz-keyframes;myfirst{from;{top:;0;}to;{top:;100px;}}@-o-keyframes;myfirst{from;{top:;0;}to;{top:;100px;}}@keyframes;myfirst{from;{top:;0;}to;{top:;100px;}}.class{position:relative;}.class:hover{-webkit-animation:myfirst;10s;-moz-animation:myfirst;10s;-o-animation:myfirst;10s;animation:myfirst;10s;}详丰菠见:http://www.w3school.com.cn/css3/css3_animation.asp
为您推荐:
其他回答
利用 CSS3 animation 可以实现一个,实现的方法很多,这只是其中之中,具体效果见附件。因为鼠标移上去要滑动100px ,所以,鼠标移上去就不要动了,它会慢慢向下滑100px。滑快滑慢。这种可以自己改了。示例在; firefox 和 chrome 浏览器测试有效,IE什么的先不管了,主要是...
css3有这种效果,不过很多浏览器不支持。
利用css3可以实现一些动画 或者是html5里的canvas作画布