<! DOCTYPE html>
<meta charset= "UTF-8" >
<title> Taiji </title>
<style class= "Cp-pen-styles" >
*{
padding:0;
margin:0;
}
. outer{
Background:linear-gradient (to Bottom,white 50%,black 50%);
margin:100px Auto;
width:400px;
height:400px;
border-radius:50%;
position:relative;
BORDER:1PX solid black;
Transition:all 5s ease;
}
. outer:hover{
Transform:rotate (360deg) scale (2);
}
. Outer. left{
Background:white;
width:200px;
height:200px;
border-radius:50%;
Position:absolute;
left:0;
top:100px;
}
. Outer. Left. leftinner{
Background:black;
width:80px;
height:80px;
border-radius:50%;
Position:absolute;
left:60px;
top:60px;
}
. Outer. right{
Background:black;
width:200px;
height:200px;
border-radius:50%;
Position:absolute;
right:0;
top:100px;
}
. Outer. rightinner{
Background:white;
width:80px;
height:80px;
border-radius:50%;
Position:absolute;
left:60px;
top:60px;
}
</style>
<body>
<div class= "outer" >
<div class= "Left" >
<div class= "Leftinner" ></div>
</div>
<div class= "Right" >
<div class= "Rightinner" ></div>
</div>
</div>
</body>
Taiji Figure----Three-layer div implementation (non-pseudo class)