Html
    Css
    Js

    
                        
body {
	padding:0;
	margin:0;
	height:100vh;
	justify-content:center;
	display:flex;
	align-items:center;
	background:#35495e;
	color:white;
	text-align:center;
	line-height:200px;
	-webkit-user-select:none;
}
.box {
	width:200px;
	height:200px;
	/* background:radial-gradient(#bbcfff,#6e5773);
	*/
			background:#333333;
	border-radius:50%;
	position:relative;
}
.box:hover.box::after {
	display:block;
}
.box::after {
	display:none;
	content:"";
	position:absolute;
	left:-2px;
	top:2px;
	width:205px;
	height:195px;
	background:white;
	border-radius:50%;
	z-index:-1;
	animation:rot 1.3s linear infinite;
}
@keyframes rot {
	from {
	transform:rotate(0deg);
}
to {
	transform:rotate(360deg);
}
}span {
	font-size:30px;
	font-weight:700;
}
.cx {
	position:absolute;
	width:100px;
	height:30px;
	border:1px solid red;
	bottom:100px;
	line-height:30px;
	cursor:pointer;
}
h1 {
	position:absolute;
	top:0px;
}

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

球体加载动图

更新时间:2020-02-09 23:18:35

0