<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<style>
.zuiwai{
width:800px;
height: 800px;
border:1px solid black;
margin:0 auto;
border-radius:50%;
background:linear-gradient(to right,#000000 0%,#000000 50%,#FFFFFF 51%,#FFFFFF 100%);
animation: zhuan 10s linear infinite;
}
.li1,.li2{
border:1px solid rgba(0,0,0,0);
width: 399px;
height: 399px;
border-radius: 50%;
margin-left:211px;
}
.li1{
transform: rotate(-46deg);
background-color: white;
}
.li2{
transform: rotate(-46deg);
background-color: black;
}
.nei1,.nei2{
width: 199px;
height: 199px;
border-radius: 50%;
border:1px solid black;
margin-left:90px;
margin-top:90px;
}
.nei1{
background-color: #262626;
}
.nei2{
background-color: white;
}
@keyframes zhuan {
50%{
transform: rotate(180deg) scale(0.5,0.5) ;
}
100%{
transform: rotate(360deg) scale(1,1) ;
}
}
</style>
</head>
<body>
<div class="zuiwai">
<div class="li1">
<div class="nei1"></div>
</div>
<div class="li2">
<div class="nei2"></div>
</div>
</div>
</body>
</html>
相关推荐
© 2020 asciim码
人生就是一场修行