小案例

动画部分的练习——☯️

2017-09-11  本文已影响0人  小飞侠zzr

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>taichi</title>
<style>
body{
background-color: #808080;
}
.taichi{
width: 400px;
height: 400px;
margin: 200px auto;
/* background-color: red; /
border-radius: 50%;
background:linear-gradient(white 50%, black 50%) ;
/
border: 1px solid black; */
display: flex ;
align-items: center;
animation: change 3s linear infinite;
}
.left{
width: 50px;
height: 50px;
border: 75px solid black;
border-radius: 50%;
background-color: white;

    }
    .right{
        width: 50px;
        height: 50px;
        border: 75px solid white;
        
        background-color: black;
        border-radius: 50%;
    }
    @keyframes  change{
        from {
            transform: rotate(0deg)
        }
        to {
            transform: rotate(360deg) ;
        }
    }
</style>

</head>
<body>
<div class="taichi">
<div class="left"></div>
<div class="right"></div>
</div>

</body>
</html>


屏幕快照 2017-09-11 下午7.27.38.png
上一篇 下一篇

猜你喜欢

热点阅读