lod动画

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>loading动画</title>
<style type="text/css">
.box{
width: 300px;
height: 135px;
border: 2px 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){
        background-color: red;
        animation: loading 0.5s ease 0s infinite alternate;
    }
    .box div:nth-child(2){
        background-color: green;
        animation: loading 0.5s ease 0.1s infinite alternate;
    }
    .box div:nth-child(3){
        background-color: pink;
        animation: loading 0.5s ease 0.2s infinite alternate;
    }
    .box div:nth-child(4){
        background-color: greenyellow;
        animation: loading 0.5s ease 0.3s infinite alternate;
    }
    .box div:nth-child(5){
        background-color: cyan;
        animation: loading 0.5s ease 0.4s 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>loading...</p>
</div>
</body>
</html>

©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

  • 1、垂直对齐 如果你用CSS,则你会有困惑:我该怎么垂直对齐容器中的元素?现在,利用CSS3的Transform,...
    kiddings阅读 3,431评论 0赞 11
  • H5移动端知识点总结 阅读目录 移动开发基本知识点 calc基本用法 box-sizing的理解及使用 理解dis...
    Mx勇阅读 4,910评论 0赞 26
  • 选择qi:是表达式 标签选择器 类选择器 属性选择器 继承属性: color,font,text-align,li...
    love2013阅读 2,516评论 0赞 11
  • 选择qi:是表达式 标签选择器 类选择器 属性选择器 继承属性: color,font,text-align,li...
    wzhiq896阅读 2,231评论 0赞 2
  • 过了十二点了!忽然想起来是十四号,又是交作业的时间了!可是我已经完美地错过了!Oh! No! Oh! My Goo...
    木夕_9131阅读 461评论 0赞 0

友情链接更多精彩内容