作业

2018-11-27  本文已影响0人  你想Ta吗

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>动画作业</title>
<style type="text/css">
.box{
width: 300px;
height: 125px;
border: 1px solid #000;
margin: 200px auto 0;
}
.box p{
text-align: center;
width: 100%;

    }
    .box div{
        width: 30px;
        height: 70px;
        float: left;
        background-color: gold;
        margin: 15px;
        border-radius: 10px;
    }
    .box div:nth-child(1){
        animation: loading 750ms ease 0s infinite alternate;
        background-color: black;
    }
    .box div:nth-child(2){
        animation: loading 750ms ease 100ms infinite alternate;
        background-color:black;
    }
    .box div:nth-child(3){
        animation: loading 750ms ease 200ms infinite alternate;
        background-color: black;
    }
    .box div:nth-child(4){
        background-color: black;
        animation: loading 750ms ease 300ms infinite alternate;
    }
    .box div:nth-child(5){
        background-color: black;
        animation: loading 750ms ease 400ms infinite alternate;
    }
    @keyframes loading{
        from{
            transform: scaleY(1);
        }
        to{
            transform: scaleY(0.5);
        }
    }
</style>

</head>
<body>
<div class="box">
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<p>ZZH...</p>
</div>
</body>
<ml>

上一篇 下一篇

猜你喜欢

热点阅读