求助,小白一只,求大神指导!
css3吧
全部回复
仅看楼主
level 7
用css动画怎么做一个小圆点绕一个圆运动?
2017年03月04日 07点03分 1
level 7
别沉了啊
2017年03月04日 07点03分 2
level 7
自己顶贴
2017年03月04日 07点03分 3
level 7
没有人嘛?
2017年03月04日 07点03分 4
level 1
<!doctype html>
<html>
<head>
<meta charset="gb2312">
<title>无标题文档</title>
<style type="text/css">
body{ background-color:#CCC}
#pop{ position:fixed; top:20%; left:38%; height:500px; width:500px; border:1px solid #666; border-radius:50%}
.noback{ width:500px; height:500px; background-color:#F90; border-radius:50%; position:relative;}
.poiont{ width:30px; height:30px; position:absolute; top:55px; left:62px; background-color:#F00; border-radius:50%}
.rotation{
-webkit-transform: rotate(360deg);
animation: rotation 3s linear infinite;
-moz-animation: rotation 3s linear infinite;
-webkit-animation: rotation 3s linear infinite;
-o-animation: rotation 3s linear infinite;
}
@-webkit-keyframes rotation{
from {-webkit-transform: rotate(0deg);}
to {-webkit-transform: rotate(360deg);}
}
</style>
</head>
<body>
<div id="pop">
<div class="noback rotation">
<div class="poiont"></div>
</div>
</div>
</body>
</html>
2017年03月14日 08点03分 5
level 1
大小按你实际需求调一下,我只是随便定了一个大小。
2017年03月14日 08点03分 6
1