loading 加载条

代码

<!DOCTYPE html>

<html lang="en">

<head>

<meta charset="UTF-8">

<title>loading</title>

<link rel="stylesheet" href="loding.css">

</head>

<body>

<div class="box">

<ul>

<li>

<div class="box1"></div>

</li>

<li>

<div class="box2"></div>

</li>

<li>

<div class="box3"></div>

</li>

<li>

<div class="box4"></div>

</li>

<li>

<div class="box5"></div>

</li>

</ul>

<div class="box6">

<ul>

<li>

<P>loading....</P>

</li>

</ul>

</div>

</div>

</body>

</html>

样式

.box{

width: 500px;

height: 200px;

border: 1px solid #000;

margin: 0 auto;

}

ul{

width: 50px;

height: 50px;

line-height: 50px;

list-style: none;

position: relative;

float: left;

margin: 0 auto;

top:20px;

right: 10px;

transform: scale(0.5) ;

transition:  all ease;

animation: bolock 0.5s ease 1s infinite alternate both;

}

ul .box1{

background-color:red;

animation: bolock 0.7s ease 1s infinite alternate both;

line-height: 50px;

}

ul .box2{

background-color:gold;

position: absolute;

left: 136px;

bottom:0px;

width: 50px;

animation: bolock 0.9s ease 1s infinite alternate both;

line-height: 50px;

}

ul .box3{

background-color:blue;

position: absolute;

left: 236px;

bottom:0px;

width: 50px;

animation: bolock 1.1s ease 1s infinite alternate both;

line-height: 50px;

}

ul .box4{

background-color:pink;

position: absolute;

left: 336px;

bottom:0px;

width: 50px;

animation: bolock 1.3s ease 1s infinite alternate both;

line-height: 50px;

}

ul .box5{

background-color:yellow;

position: absolute;

left: 436px;

bottom:0px;

width: 50px;

animation: bolock 1.5s ease 1s infinite alternate both;

line-height: 50px;

}

.box6{

position: absolute;

left: 550px;

top:100px;

font-size: 25px;

display: block;

}

@keyframes bolock{

from{

height: 150px;

}

to{

height: 200px;

}

}

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 选择qi:是表达式 标签选择器 类选择器 属性选择器 继承属性: color,font,text-align,li...
    love2013阅读 6,831评论 0 11
  • 选择qi:是表达式 标签选择器 类选择器 属性选择器 继承属性: color,font,text-align,li...
    wzhiq896阅读 5,782评论 0 2
  • # 移动端开发 ### 1. 1px问题如何解决 #### ①伪类 + transform(比较完美) > 原理是...
    sunnyRube阅读 4,377评论 0 0
  • 1 css3知识解读 css3解读链接:css3知识解读 自定义字体利用@font-face{}引入自定义字体;创...
    果木山阅读 2,806评论 0 1
  • 轻而易举的富足》第一册 第6天 第6课 我警醒于光 今天,我更能察觉我的思想。我选择光明的思想,而非黑暗的思想。不...
    朱倩仪阅读 1,436评论 0 0