Html
    Css
    Js

    
                        
* {
	margin:0;
	padding:0;
}
body {
	overflow:hidden;
}
div {
	width:200px;
	height:200px;
	background-color:black;
	position:absolute;
	left:0;
	top:0;
	bottom:0;
	right:0;
	margin:auto;
	border-radius:50%;
	background-image:linear-gradient(0deg,red 47%,black 47%,black 53%,white 53%,white 100%);
	box-shadow:-10px -10px 30px 5px rgba(0,0,0,0.5) inset;
	transition:all 20s linear;
}
div:hover {
	transform:rotate(3600deg) scale(4);
}
div:before {
	content:'';
	width:40px;
	height:40px;
	position:absolute;
	top:0;
	right:0;
	left:0;
	bottom:0;
	margin:auto;
	background-color:white;
	border-radius:80%;
	box-shadow:0 0 0 2px #000,0 0 0 7px white,0 0 0 17px #000;
}

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

精灵球css3 实现

2
      枯木♂逢春★0
      2017/12/29 10:57:09

      还可以,能再快点不,怎么操作?

          爷,@风靡全球%1
          2017/12/29 11:01:32

          transition:all 20s linear;把时间调快

      回复