css3实现不同的loading
样式1:

<html>
<head>
<style type="text/css">
.loading {
position: fixed;
top: 50%;
left: 50%;
margin-top: -6px;
margin-left: -30px;
} .loading i {
display: inline-block;
float: left;
width: 12px;
height: 12px;
border-radius: 12px;
background-color: #999;
margin: 0 4px;
opacity: .1;
-webkit-animation: flashPop .6s linear alternate infinite both;
animation: flashPop .6s linear alternate infinite both;
} .loading i:nth-of-type(2) {
-webkit-animation-delay: .2s;
animation-delay: .2s
} .loading i:last-child {
-webkit-animation-delay: .4s;
animation-delay: .4s
} @-webkit-keyframes flashPop {
0% {
opacity: 1
} 33% {
opacity: .5
} 66% {
opacity: .1
}
} @keyframes flashPop {
0% {
opacity: 1
} 33% {
opacity: .5
} 66% {
opacity: .1
}
}
</style>
</head> <body>
<div class="loading">
<i></i>
<i></i>
<i></i>
</div>
</body>
</html>
样式2:

<html> <head>
<style type="text/css">
.loading {
position: fixed;
top: %;
left: %;
margin-top: -6px;
margin-left: -30px;
} .loading>i {
float: left;
width: 12px;
height: 12px;
border-radius: 12px;
background-color: #;
display: inline-block;
-webkit-animation: bouncedelay .4s infinite ease-in-out;
animation: bouncedelay .4s infinite ease-in-out;
-webkit-animation-fill-mode: both;
animation-fill-mode: both;
margin: 4px;
} .loading .bounce1 {
-webkit-animation-delay: -.32s;
animation-delay: -.32s;
} .loading .bounce2 {
-webkit-animation-delay: -.16s;
animation-delay: -.16s;
} @-webkit-keyframes bouncedelay {
%,
%,
% {
-webkit-transform: scale(0.0);
} % {
-webkit-transform: scale(1.0);
}
} @keyframes bouncedelay {
%,
%,
% {
transform: scale(0.0);
-webkit-transform: scale(0.0);
} % {
transform: scale(1.0);
-webkit-transform: scale(1.0);
}
}
</style>
</head> <body>
<div class="loading">
<i class="bounce1"></i>
<i class="bounce2"></i>
<i class="bounce3"></i>
</div>
</body> </html>
样式3:

<html> <head>
<style type="text/css">
.loading {
position: fixed;
top: 50%;
left: 50%;
margin-top: -6px;
margin-left: -30px;
} .circle {
-webkit-animation: cui-loading 1.58s linear infinite;
animation: cui-loading 1.58s linear infinite;
-webkit-transform-origin: 50% 50%;
transform-origin: 50% 50%;
opacity: 0;
width: 19px;
height: 19px;
border-left: #c5c5c5 1px solid;
display: block;
border-bottom: #c5c5c5 1px solid;
border-radius: 50%;
} @-webkit-keyframes cui-loading {
0% {
opacity: 1;
-webkit-transform: rotate(0deg)
} 100% {
opacity: 1;
-webkit-transform: rotate(360deg)
}
} @-moz-keyframes cui-loading {
0% {
opacity: 1;
-moz-transform: rotate(0deg)
} 100% {
opacity: 1;
-moz-transform: rotate(360deg)
}
} @-ms-keyframes cui-loading {
0% {
opacity: 1;
-ms-transform: rotate(0deg)
} 100% {
opacity: 1;
-ms-transform: rotate(360deg)
}
} @keyframes cui-loading {
0% {
opacity: 1;
transform: rotate(0deg)
} 100% {
opacity: 1;
transform: rotate(360deg)
}
}
</style>
</head> <body>
<div class="loading">
<span class="circle"></span>
</div>
</body> </html>
样式4:

<html> <head>
<style type="text/css">
.loading {
position: fixed;
top: 50%;
left: 50%;
margin-top: -6px;
margin-left: -30px;
width: 2em;
height: 2em;
color: inherit;
vertical-align: middle;
border: .3em solid #ffffff;
border-top-color: #9C27B0;
border-radius: 50%;
-webkit-animation: 1s flashPop linear infinite;
animation: 1s flashPop linear infinite;
} .loading:before {
content: '';
display: block;
width: inherit;
height: inherit;
position: absolute;
top: -.3em;
left: -.3em;
border: .3em solid #9C27B0;
border-radius: 50%;
opacity: .5;
} @-webkit-keyframes flashPop {
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
} @keyframes flashPop {
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
</style>
</head> <body>
<div class="loading">
</div>
</body> </html>
css3实现不同的loading的更多相关文章
- CSS3实现8种Loading效果【第二波】
原文:CSS3实现8种Loading效果[第二波] 今晚吃完饭回宿舍又捣鼓了另外几种Loading效果,老规矩,直接“上菜“…… 注:gif图片动画有些卡顿,非实际效果! PS:若要转载请注明出处,尊 ...
- CSS3实现10种Loading效果(转)
CSS3实现10种Loading效果 原文地址:http://www.cnblogs.com/jr1993/p/4622039.html 昨晚用CSS3实现了几种常见的Loading效果,虽然很简单 ...
- CSS3实现8种Loading效果【二】
CSS3实现8种Loading效果[二] 今晚吃完饭回宿舍又捣鼓了另外几种Loading效果,老规矩,直接“上菜“…… 注:gif图片动画有些卡顿,非实际效果! 第一种效果: 代码如下: < ...
- CSS3订单提交按钮Loading代码
<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"& ...
- 【转】 CSS3实现10种Loading效果
昨晚用CSS3实现了几种常见的Loading效果,虽然很简单,但还是分享一下,顺便也当是做做笔记…… PS:如需转载,请注明出处! 第1种效果: 代码如下: <div class="l ...
- CSS3轻松实现清新 Loading 效果
至今HTML5中国已经为大家分享过几百种基于 CSS3 的Loading加载动画,效果酷炫代码简洁,非常值得学习借鉴;今天就先给大家分享两个常用的CSS3的Loading的案例. 第一种效果: HTM ...
- CSS3实现10种Loading效果
昨晚用CSS3实现了几种常见的Loading效果,虽然很简单,但还是分享一下,顺便也当是做做笔记…… 第1种效果: 代码如下: <div class="loading"> ...
- 用CSS3实现饼状loading效果
原文地址:http://visugar.com/2017/05/17/CSS3%E9%A5%BC%E7%8A%B6loading%E6%95%88%E6%9E%9C/ 写在前面 (附录有源码及效果) ...
- CSS3 的10种Loading
昨晚用CSS3实现了几种常见的Loading效果,虽然很简单,但还是分享一下,顺便也当是做做笔记…… 第1种效果: 代码如下: <div class="loading"> ...
随机推荐
- 远程桌面管理工具Remote Desktop Connection Manager
使用说明:RDCMan安装好后双击打开RDCMan.exe,首次使用需要添加配置文件扩展名为rdg 1.点击File新建配置文件,这里命名为MRU,存放在安装的根路径下 建好之后,MRU会显示在左侧菜 ...
- Java判断不为空的工具类总结
1.Java判断是否为空的工具类,可以直接使用.包含,String字符串,数组,集合等等. package com.bie.util; import java.util.Collection; imp ...
- 磁盘blk_update_request: I/O error
https://www.cnblogs.com/chris-cp/p/6340289.html
- HL7消息部分笔记
1.关于HL7标准 HL7是HealthLevel7的缩写,主要用于医疗领域不同的系统.应用之间的信息传递.规范各个系统间的信息传递格式. 2.字段含义: Z信息段: Z信息段是指与HL7第二版标准其 ...
- selenium相关:通过location 和 size 获取元素所在像素位置和尺寸,截取图片ROI
1.实验 #https://captcha.luosimao.com/demo/ chrome default: location 不滚动,直接返回相对整个html的坐标 {'x': 15.0, 'y ...
- jQuery滑动开关按钮效果
效果图: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3 ...
- ArcGIS 卷帘效果
一直没注意ArcGIS自带了卷帘功能,使用方法:调出Effects工具条,里面就有卷帘工具. AE开发参考: http://bbs.esrichina-bj.cn/esri/viewthread.ph ...
- node.js版本管理
Node安装 Node的安装需要依赖很多,如gcc等,首先我们需要将这些安装成功,用rpm命令查看下,果然我们并没有gcc等,所以要用yum进行安装(基于centos6.9版本): yum -y in ...
- phpmyadmin详细的图文使用教程
做网站用到服务器有很多站长应该都会用到数据库,那么phpmyadmin的使用也会是很多新手站长头大的问题,下面小编详细介绍一下phpmyadmin详细的图文使用教程. 方法/步骤 如何进入ph ...
- BZOJ3437 小P的牧场 动态规划 斜率优化
原文链接http://www.cnblogs.com/zhouzhendong/p/8696321.html 题目传送门 - BZOJ3437 题意 给定两个序列$a,b$,现在划分$a$序列. 被划 ...