<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>CSS3实现加载数据动画</title>
<style type="text/css">
.box{
width: 100%;
padding: 3%;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
overflow: hidden;
}
.box .loader{
width: 30%;
height: 200px;
float: left;
margin-right: 3%;
border: 1px #cccccc solid;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
display: flex;
align-items: center;
justify-content: center;
}
.loading-1{
width: 60px;
height: 60px;
position: relative;
}
.loading-1 i{
display: block;
width: 60px;
height: 60px;
border-radius: 50%;
background-color: #333333;
position: absolute;
left:;
top:;
opacity:;
}
.loading-1 i:nth-child(1){
-webkit-animation: loading-1 1s linear 0s infinite;
-moz-animation: loading-1 1s linear 0s infinite;
-o-animation: loading-1 1s linear 0s infinite;
animation: loading-1 1s linear 0s infinite;
}
.loading-1 i:nth-child(2){
-webkit-animation: loading-1 1s linear 0.2s infinite;
-moz-animation: loading-1 1s linear 0.2s infinite;
-o-animation: loading-1 1s linear 0.2s infinite;
animation: loading-1 1s linear 0.2s infinite;
}
.loading-1 i:nth-child(2){
-webkit-animation: loading-1 1s linear 0.4s infinite;
-moz-animation: loading-1 1s linear 0.4s infinite;
-o-animation: loading-1 1s linear 0.4s infinite;
animation: loading-1 1s linear 0.4s infinite;
}
@-webkit-keyframes loading-1 {
0%{
-webkit-transform: scale(0);
-moz-transform: scale(0);
-ms-transform: scale(0);
-o-transform: scale(0);
transform: scale(0);
opacity:;
}
50%{
opacity:;
}
100%{
-webkit-transform: scale(1);
-moz-transform: scale(1);
-ms-transform: scale(1);
-o-transform: scale(1);
transform: scale(1);
opacity:;
}
}
@-moz-keyframes loading-1 {
0%{
-webkit-transform: scale(0);
-moz-transform: scale(0);
-ms-transform: scale(0);
-o-transform: scale(0);
transform: scale(0);
opacity:;
}
50%{
opacity:;
}
100%{
-webkit-transform: scale(1);
-moz-transform: scale(1);
-ms-transform: scale(1);
-o-transform: scale(1);
transform: scale(1);
opacity:;
}
}
@-o-keyframes loading-1 {
0%{
-webkit-transform: scale(0);
-moz-transform: scale(0);
-ms-transform: scale(0);
-o-transform: scale(0);
transform: scale(0);
opacity:;
}
50%{
opacity:;
}
100%{
-webkit-transform: scale(1);
-moz-transform: scale(1);
-ms-transform: scale(1);
-o-transform: scale(1);
transform: scale(1);
opacity:;
}
}
@keyframes loading-1 {
0%{
-webkit-transform: scale(0);
-moz-transform: scale(0);
-ms-transform: scale(0);
-o-transform: scale(0);
transform: scale(0);
opacity:;
}
50%{
opacity:;
}
100%{
-webkit-transform: scale(1);
-moz-transform: scale(1);
-ms-transform: scale(1);
-o-transform: scale(1);
transform: scale(1);
opacity:;
}
} .loading-2{
width: 40px;
height: 40px;
position: relative;
}
.loading-2 i{
display: block;
border: 2px solid;
border-color: transparent #333333;
-webkit-border-radius: 50%;
-moz-border-radius: 50%;
border-radius: 50%;
position: absolute;
}
.loading-2 i:first-child{
width: 35px;
height: 35px;
top:;
left:;
-webkit-animation: loading-2 1s ease 0s infinite;
-moz-animation: loading-2 1s ease 0s infinite;
-o-animation: loading-2 1s ease 0s infinite;
animation: loading-2 1s ease 0s infinite;
}
.loading-2 i:last-child{
width: 15px;
height: 15px;
top: 10px;
left: 10px;
-webkit-animation: loading-2 1s ease -0.25s infinite reverse;
-moz-animation: loading-2 1s ease -0.25s infinite reverse;
-o-animation: loading-2 1s ease -0.25s infinite reverse;
animation: loading-2 1s ease -0.25s infinite reverse;
}
@-webkit-keyframes loading-2 {
0%{
-webkit-transform: rotate(0deg) scale(1);
-moz-transform: rotate(0deg) scale(1);
-ms-transform: rotate(0deg) scale(1);
-o-transform: rotate(0deg) scale(1);
transform: rotate(0deg) scale(1);
}
50%{
-webkit-transform: rotate(180deg) scale(.6);
-moz-transform: rotate(180deg) scale(.6);
-ms-transform: rotate(180deg) scale(.6);
-o-transform: rotate(180deg) scale(.6);
transform: rotate(180deg) scale(.6);
}
100%{
-webkit-transform: rotate(360deg) scale(1);
-moz-transform: rotate(360deg) scale(1);
-ms-transform: rotate(360deg) scale(1);
-o-transform: rotate(360deg) scale(1);
transform: rotate(360deg) scale(1);
}
}
@-moz-keyframes loading-2 {
0%{
-webkit-transform: rotate(0deg) scale(1);
-moz-transform: rotate(0deg) scale(1);
-ms-transform: rotate(0deg) scale(1);
-o-transform: rotate(0deg) scale(1);
transform: rotate(0deg) scale(1);
}
50%{
-webkit-transform: rotate(180deg) scale(.6);
-moz-transform: rotate(180deg) scale(.6);
-ms-transform: rotate(180deg) scale(.6);
-o-transform: rotate(180deg) scale(.6);
transform: rotate(180deg) scale(.6);
}
100%{
-webkit-transform: rotate(360deg) scale(1);
-moz-transform: rotate(360deg) scale(1);
-ms-transform: rotate(360deg) scale(1);
-o-transform: rotate(360deg) scale(1);
transform: rotate(360deg) scale(1);
}
}
@-o-keyframes loading-2 {
0%{
-webkit-transform: rotate(0deg) scale(1);
-moz-transform: rotate(0deg) scale(1);
-ms-transform: rotate(0deg) scale(1);
-o-transform: rotate(0deg) scale(1);
transform: rotate(0deg) scale(1);
}
50%{
-webkit-transform: rotate(180deg) scale(.6);
-moz-transform: rotate(180deg) scale(.6);
-ms-transform: rotate(180deg) scale(.6);
-o-transform: rotate(180deg) scale(.6);
transform: rotate(180deg) scale(.6);
}
100%{
-webkit-transform: rotate(360deg) scale(1);
-moz-transform: rotate(360deg) scale(1);
-ms-transform: rotate(360deg) scale(1);
-o-transform: rotate(360deg) scale(1);
transform: rotate(360deg) scale(1);
}
}
@keyframes loading-2 {
0%{
-webkit-transform: rotate(0deg) scale(1);
-moz-transform: rotate(0deg) scale(1);
-ms-transform: rotate(0deg) scale(1);
-o-transform: rotate(0deg) scale(1);
transform: rotate(0deg) scale(1);
}
50%{
-webkit-transform: rotate(180deg) scale(.6);
-moz-transform: rotate(180deg) scale(.6);
-ms-transform: rotate(180deg) scale(.6);
-o-transform: rotate(180deg) scale(.6);
transform: rotate(180deg) scale(.6);
}
100%{
-webkit-transform: rotate(360deg) scale(1);
-moz-transform: rotate(360deg) scale(1);
-ms-transform: rotate(360deg) scale(1);
-o-transform: rotate(360deg) scale(1);
transform: rotate(360deg) scale(1);
}
} .loading-3{
width: 80px;
height: 20px;
position: relative;
}
.loading-3 i{
display: block;
width: 20px;
height: 20px;
-webkit-border-radius: 50%;
-moz-border-radius: 50%;
border-radius: 50%;
background: #333333;
margin-right: 10px;
position: absolute;
}
.loading-3 i:nth-child(1){
-webkit-animation: loading-3 2s linear 0s infinite;
-moz-animation: loading-3 2s linear 0s infinite;
-o-animation: loading-3 2s linear 0s infinite;
animation: loading-3 2s linear 0s infinite;
}
.loading-3 i:nth-child(2){
-webkit-animation: loading-3 2s linear -0.4s infinite;
-moz-animation: loading-3 2s linear -0.4s infinite;
-o-animation: loading-3 2s linear -0.4s infinite;
animation: loading-3 2s linear -0.4s infinite;
}
.loading-3 i:nth-child(3){
-webkit-animation: loading-3 2s linear -0.8s infinite;
-moz-animation: loading-3 2s linear -0.8s infinite;
-o-animation: loading-3 2s linear -0.8s infinite;
animation: loading-3 2s linear -0.8s infinite;
}
.loading-3 i:nth-child(4){
-webkit-animation: loading-3 2s linear -1.2s infinite;
-moz-animation: loading-3 2s linear -1.2s infinite;
-o-animation: loading-3 2s linear -1.2s infinite;
animation: loading-3 2s linear -1.2s infinite;
}
.loading-3 i:nth-child(5){
-webkit-animation: loading-3 2s linear -1.6s infinite;
-moz-animation: loading-3 2s linear -1.6s infinite;
-o-animation: loading-3 2s linear -1.6s infinite;
animation: loading-3 2s linear -1.6s infinite;
}
@-moz-keyframes loading-3 {
0%{
left: 100px;
top:;
}
80%{
left:;
top:;
}
85%{
width: 20px;
height: 20px;
left:;
top: -25px;
}
90%{
width: 40px;
height: 20px;
}
95%{
left: 100px;
top: -20px;
width: 20px;
height: 20px;
}
100%{
left: 100px;
top:;
}
}
@-webkit-keyframes loading-3 {
0%{
left: 100px;
top:;
}
80%{
left:;
top:;
}
85%{
width: 20px;
height: 20px;
left:;
top: -25px;
}
90%{
width: 40px;
height: 20px;
}
95%{
left: 100px;
top: -20px;
width: 20px;
height: 20px;
}
100%{
left: 100px;
top:;
}
}
@-o-keyframes loading-3 {
0%{
left: 100px;
top:;
}
80%{
left:;
top:;
}
85%{
width: 20px;
height: 20px;
left:;
top: -25px;
}
90%{
width: 40px;
height: 20px;
}
95%{
left: 100px;
top: -20px;
width: 20px;
height: 20px;
}
100%{
left: 100px;
top:;
}
}
@keyframes loading-3 {
0%{
left: 100px;
top:;
}
80%{
left:;
top:;
}
85%{
width: 20px;
height: 20px;
left:;
top: -25px;
}
90%{
width: 40px;
height: 20px;
}
95%{
left: 100px;
top: -20px;
width: 20px;
height: 20px;
}
100%{
left: 100px;
top:;
}
}
</style>
</head>
<body>
<div class="box">
<div class="loader">
<div class="loading-1">
<i></i>
<i></i>
<i></i>
</div>
</div>
<div class="loader">
<div class="loading-2">
<i></i>
<i></i>
</div>
</div>
<div class="loader">
<div class="loading-3">
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
</div>
</div>
</div>
</body>
</html>

CSS3实现加载数据动画2的更多相关文章

  1. CSS3实现加载数据动画1

    <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8&quo ...

  2. css3加载ing动画

    项目中ajax交互成功前总会需要给用户提醒,比如请稍候.正在加载中等等,那个等待的动图以前项目中用的是gif,在移动端画质很渣,有毛边,于是在新项目中用css3展示加载中的动画效果. function ...

  3. 纯css3 加载loading动画特效

    最近项目中要实现当页面还没有加载完给用户提示正在加载的loading,本来是想做个图片提示的,但是图片如果放大电脑的分辨率就会感觉到很虚,体验效果很不好.于是就采用css3+js实现这个loading ...

  4. 2款不同样式的CSS3 Loading加载动画 附源码

    原文:2款不同样式的CSS3 Loading加载动画 附源码 我们经常看到的Loading加载很多都是转圈圈的那种,今天我们来换一种有创意的CSS3 Loading加载动画,一种是声波形状的动画,另一 ...

  5. 10个样式各异的CSS3 Loading加载动画

    前几天我在园子里分享过2款很酷的CSS3 Loading加载动画,今天又有10个最新的Loading动画分享给大家,这些动画的样式都不一样,实现起来也并不难,你很容易把它们应用在项目中,先来看看效果图 ...

  6. 30款基于 jQuery & CSS3 的加载动画和进度条插件

    我们所生活每一天看到的新技术或新设计潮流的兴起,Web 开发正处在上升的时代.HTML5 & CSS3 技术的发展让 Web 端可以实现的功能越来越强大. 加载动画和进度条使网站更具吸引力.该 ...

  7. Android动画之仿美团加载数据等待时,小人奔跑进度动画对话框(附顺丰快递员奔跑效果)

    Android动画之仿美团加载数据等待时,小人奔跑进度动画对话框(附顺丰快递员奔跑效果) 首句依然是那句老话,你懂得! finddreams :(http://blog.csdn.net/finddr ...

  8. echarts在.Net中使用实例(二) 使用ajax动态加载数据

    通过上一篇文章可以知道和echarts参考手册可知,series字段就是用来存储我们显示的数据,所以我们只需要用ajax来获取series的值就可以. option 名称 描述 {color}back ...

  9. iscroll5 上拉,下拉 加载数据

    我这里的思路是上拉时候只是加载第一页的内容,可根据实际情况修改其中的代码.请勿照搬.样式没怎么调,可以加载gif动画.1.没有数据时候,下拉可以加载数据.2.没有数据时候,点击也可以加载数据.3.其余 ...

随机推荐

  1. ZT c++ 中的重载全局new,delete

    c++ 中的重载全局new,delete 分类: c++ 2010-08-06 10:31 116人阅读 评论(1) 收藏 举报 deletec++file编译器语言工作 最近做一个小项目,对c++又 ...

  2. groupdel

    功能说明:用于删除指定的用户组,此命令不能删除用户归属的主用户组.

  3. (第八场)G Counting regions 【欧拉公式】

    题目链接:https://www.nowcoder.com/acm/contest/146/G G.Counting regions | 时间限制:1 秒 | 内存限制:128M Niuniu lik ...

  4. Linux 进程状态标识 Process State Definition

    From : http://www.linfo.org/process_state.html 译者:李秋豪 进程状态标识是指在进程描述符中状态位的值. 进程,也可被称为任务,是指一个程序运行的实例. ...

  5. 取火柴游戏||Nim博弈

    好久之前看的sg函数了 好像就记住一个nim博弈qwq 第一次啊看的时候很迷,现在感觉可以了qwq 首先我们来看一个其他的游戏.(以下游戏只有两个人参与,且足够聪明) 两个人在一张圆形的桌子上放等大的 ...

  6. 【洛谷P2447】[SDOI2010]外星千足虫

    外星千足虫 题目链接 首先,它一看题解就是个高斯消元 只是改成了奇偶性的判断 性质: 奇数+奇数=偶数 奇数+偶数=奇数 偶数+奇数=奇数 偶数+偶数=偶数 于是我们用1表示奇数,0表示偶数 1+1= ...

  7. PAT1087. All Roads Lead to Rome

    PAT1087. All Roads Lead to Rome 题目大意 给定一个图的边权和点权, 求边权最小的路径; 若边权相同, 求点权最大; 若点权相同, 则求平均点权最大. 思路 先通过 Di ...

  8. java基础(杂记)

    java基础夯实(杂记):1:创建实例对象可以通过无参的构造函数然后调用成员变量去初始化属性,也可以自己定义有参构造方法直接初始化属性,当属性为private时我们可以通过getset方法间接访问:2 ...

  9. jQuery中没有innerHtml和innerText

    发现如果我在div或者其他非表单的标签中赋值,原本用普通的js就直接document.getElementById("id").innerHtml(或者其他几个)就可以了. 但是在 ...

  10. JSON Web Tokens介绍

    转载请标明出处: http://blog.csdn.net/forezp/article/details/72804324 本文出自方志朋的博客 ##什么是JWT 这篇文章选择性翻译于https:// ...