【发布时间】:2014-06-04 17:56:12
【问题描述】:
我已经浏览网页很长一段时间了,试图找到一种在加载页面时让图标移动到屏幕上的方法(从左侧到 body div 的中心)。如何才能做到这一点?
这是我目前所拥有的:
CSS3
a#rotator {
text-decoration: none;
padding-right: 20px;
margin-left: 20px;
float: left;
}
a#rotator img {
-webkit-transition: all 1s ease-in-out;
-moz-transition: all 1s ease-in-out;
-o-transition: all 1s ease-in-out;
-ms-transition: all 1s ease-in-out;
border-radius:60px;
transition-duration: 1s;
}
a#rotator img:hover {
box-shadow: 0 3px 15px #000;
-webkit-transform: rotate(360deg);
-moz-transform: rotate(360deg);
-o-transform: rotate(360deg);
-ms-transform: rotate(360deg);
transform: translate()
}
【问题讨论】:
标签: image css animation transition