Html
    Css
    Js

    
                        
.a {
	width:400px;
	height:400px;
	border:1px solid red;
	border-radius:50%;
	background-color:red;
	position:relative;
	margin:200px auto;
}
.b {
	width:100px;
	height:100px;
	border:1px solid blue;
	background-color:blue;
	border-radius:50%;
	position:absolute;
	top:-50px;
	left:150px;
	animation:one 3s  infinite;
	transform-origin:50px 250px;
	position:relative;
}
.c {
	width:50px;
	height:50px;
	border:1px solid green;
	background-color:green;
	border-radius:50%;
	position:absolute;
	top:-55px;
	left:25px;
	animation:one 3s  infinite;
	transform-origin:25px 105px;
}
@keyframes one {
	100% {
	transform:rotate(360deg);
}
}

                        
↑上面代码改变,会自动显示代码结果 jQuery调用版本:1.11.3
 立即下载

css圆球环绕(原创)

更新时间:2020-03-05 00:39:33

算好每个球的距离 找好中心点 用css动画让它旋转

0