【发布时间】:2015-12-15 13:31:02
【问题描述】:
我有这段代码可以在悬停时进行旋转。它根本不起作用。它有什么问题?
我需要完整的 360º 旋转动画
.icon-style-1 .builder-element-icon {
height: 100px;
width: 100px;
line-height: 100px;
background: blue;
line-height: 100px;
text-align: center;
margin: 0 auto;
display: block;
-webkit-border-radius: 50%;
-moz-border-radius: 50%;
border-radius: 50%;
color: white;
}
.icon-style-1 .builder-element-icon:hover {
background: green;
-moz-transform: rotate(360deg);
-webkit-transform: rotate(360deg);
-o-transform: rotate(360deg);
-ms-transform: rotate(360deg);
transform: rotate(360deg);
}
<div class="icon-style-1">
<span class="builder-element-icon fa fa-camera"></span>
</div>
【问题讨论】:
-
也提供一些
html -
我刚刚编辑了标题并在我的问题中添加了一些文字
-
顺便说一句,你应该把
class=".icon-style-1"改成class="icon-style-1"