是前文 plugin 示例 loading 中需要用到的样式。现在样式扩充为 5类。loadtwo 使用到了bgimg

/*loading animation loading one*/

/* loading 直接追到到 body 最后 *//*loading-cover 全局遮盖层

*/.loadcover {    position: fixed;    left: 0;    right: 0;    top: 0;    bottom: 0;    background: rgba(0,0,0,.3);    z-index: 9999;}.loadone {    position: fixed;    top: 50%;    margin-top: -125px;    z-index: 100;    left: 50%;    width: 300px;    height: 250px;    line-height: 140px;    margin-left: -150px;    border-top: 1px solid #f1f1f1;    border-radius: 10px;    text-align: center;    color: #797979;    background: #fff;    font-size: 15px!important;    -webkit-box-shadow: 0 10px 30px rgba(0,0,0,0.1);    -moz-box-shadow:0 10px 30px rgba(0,0,0,0.1);    -ms-box-shadow:0 10px 30px rgba(0,0,0,0.1);    box-shadow: 0 10px 30px rgba(0,0,0,0.1);}.loadone:before,.loadone:after {    content: "";    position: absolute;    top: 60%;    left: 50%;    display: block;    width: 0.5em;    height: 0.5em;    border-radius: 0.25em;    transform: translate(-50%,-50%);}.loadone:before {    animation: before 2s infinite;}.loadone:after {    animation: after 2s infinite;}@keyframes before {    0% {        width: 0.5em;        box-shadow: 1em -0.5em #f884a8, -1em 0.5em #b9c7ff;    }    35%{        width: 2.5em;        box-shadow: 0 -0.5em  #f10851, 0 0.5em #728ffe;    }    70% {        width: 0.5em;        box-shadow: -1em -0.5em  #f884a8, 1em 0.5em #b9c7ff;    }    100%{        box-shadow: 1em -0.5em  #f884a8, -1em 0.5em #b9c7ff;    }}

@keyframes after {    0% {        height: 0.5em;        box-shadow: 0.5em 1em  #ffd380, -0.5em -1em #97d890;    }    35%{        height: 2.5em;        box-shadow: 0.5em 0  #ffa600, -0.5em 0 #2fb020;    }    70% {        height: 0.5em;        box-shadow: 0.5em -1em #ffd380, -0.5em 1em #97d890;    }    100%{        box-shadow: 0.5em 1em #ffd380,  -0.5em -1em #97d890;    }}

/*洗衣机*//*/洗衣机*/.loadtwo {    width: 300px;    height: 180px;    position: fixed;    left: 50%;    top: 50%;    margin-left: -150px;    margin-top: -50px;    background: url("washer.png") no-repeat center center #fff;    line-height: 300px;    text-align: center;    color: #333;    border-radius: 10px;}.loadtwo:before {    content: "";    display: block;    width: 30px;    height: 30px;    position: absolute;    left: 50%;    top: 50%;    margin-top: -11px;    margin-left: -15px;    border-radius: 100%;    border: 1px solid #999;    background: linear-gradient(90deg, transparent 0%, transparent 70%, lightskyblue 30%, skyblue 100%);    animation: washer 0.8s 0s infinite linear;}

@keyframes washer {    0% {        transform: rotate(0deg);    }    25% {        transform: rotate(90deg);    }    50% {        transform: rotate(180deg);    }    75% {        transform: rotate(270deg);    }    100% {        transform: rotate(360deg);    }}

/* 最常见的空心圆旋转 */.loadthree {    width: 300px;    height: 150px;    position: fixed;    left: 50%;    top: 50%;    margin-left: -150px;    margin-top: -50px;    line-height: 200px;    text-align: center;    color: #333;    background: #fff;    border-radius: 10px;}.loadthree:before {    content: '';    display: block;    width: 40px;    height: 40px;    position: fixed;    border-radius: 100%;    left: 50%;    top: 50%;    margin-left: -20px;    margin-top: -10px;    border: 2px solid #ffa600;    border-bottom-color: transparent;    animation: scalecircle 0.8s 0s infinite linear;}@keyframes scalecircle {    0% {        transform: rotate(0deg);

    }    50% {        transform: rotate(180deg);

    }    100% {        transform: rotate(360deg);

    }}

/* before after 创建两个圆,中心圆实心缩放,外圆空心旋转缩放 */.loadfour {    width: 300px;    height: 150px;    position: fixed;    left: 50%;    top: 50%;    margin-left: -150px;    margin-top: -50px;    line-height: 200px;    text-align: center;    color: #333;    background: #fff;    border-radius: 10px;}.loadfour:before,.loadfour:after {     content: '';     display: block;     position: fixed;     border-radius: 100%;     left: 50%;     top: 50%;    border: 2px solid #ffa600; }.loadfour:before {    width: 20px;    height: 20px;    margin-left: -10px;    margin-top: -10px;    border-left-color: transparent;    border-right-color: transparent;    animation: innercircle 0.8s 0s infinite linear;}.loadfour:after {    width: 30px;    height: 30px;    margin-left: -15px;    margin-top: -15px;    border-bottom-color: transparent;    border-top-color: transparent;    animation: outercircle 0.8s 0s infinite linear;}@keyframes innercircle {    0% {        transform: rotate(360deg);

    }    50% {        transform: rotate(180deg);

    }    100% {        transform: rotate(0deg);

    }  }@keyframes outercircle {    0% {        transform: scale(1.2) rotate(0deg);

    }    100% {        transform: scale(1.2) rotate(360deg);

    }}

/* before after 创建两个圆,圆空心旋转缩放 */.loadfive {    width: 300px;    height: 150px;    position: fixed;    left: 50%;    top: 50%;    margin-left: -150px;    margin-top: -50px;    line-height: 200px;    text-align: center;    color: #333;    background: #fff;    border-radius: 10px;}.loadfive:before,.loadfive:after {    content: '';    display: block;    position: fixed;    border-radius: 100%;    left: 50%;    top: 50%;    border: 2px solid #ffa600;    animation: bordercircle 1s 0s infinite linear;}.loadfive:before {    width: 20px;    height: 20px;    margin-left: -10px;    margin-top: -10px;    background: #ffa600;}.loadfive:after {    width: 34px;    height: 34px;    margin-left: -17px;    margin-top: -17px;    border-bottom-color: transparent;    border-top-color: transparent;}@keyframes bordercircle {    0% {        transform: scale(1) rotate(-90deg);

    }    50% {        transform: scale(0.8) rotate(270deg);

    }    100% {        transform: scale(1) rotate(90deg);

    }}

页面加载过渡页 loading plugin css的更多相关文章

  1. JS实现页面加载完毕之前loading提示效果

    1.获取浏览器页面可见高度和宽度 var _PageHeight = document.documentElement.clientHeight, _PageWidth = document.docu ...

  2. js实现的页面加载完毕之前loading提示效果

    页面加载readyState的五种状态 原文如下: 0: (Uninitialized) the send( ) method has not yet been invoked. 1: (Loadin ...

  3. ionic 页面加载事件及loading动画

    页面加载完成事件(非刷新情况下,页面切换是不会重复触发此事件的,只在第一次进入页面时触发,需要重复触发的话请使用 $ionicView.enter 事件) angular.module('app.co ...

  4. 一个等待页面加载完毕的loading动画

    1 html 部分 <!DOCTYPE html><html><head><meta http-equiv="Content-Type" ...

  5. 当vue 页面加载数据时显示 加载loading

    参考:https://www.jianshu.com/p/104bbb01b222 Vue 页面加载数据之前增加 `loading` 动画 创建组件 1.新建 .vue 文件: src -> c ...

  6. JQuery浮动层Loading页面加载特效

    之前做项目,经常需要一些浮动层加载Loading. 现在好多前端框架都能实现了,最常用的就是 artDialog 下面记录下当时的代码. <!DOCTYPE html PUBLIC " ...

  7. 在页面加载前先出现加载loading,页面加载完成之后再显示页面

    在此加入一个关于页面加载成功之前先展现一个loading的案例: 如下代码写入js里放在html头部即可实现需求:添加的可以自己在css文件设置宽高,也可以放入一个background的gif的loa ...

  8. css3实现loading效果--当页面加载过程中显示Loading的进度条,全部加载完成之后进度条消失

    一个页面等图片资源全部加载完成,会需要很长时间,用户体验会很差,所以我们需要loading来掩盖这个漫长的过程! emmm,定时器?写个定时器还要清除,万一造成内存泄露?定时器之间还会互相影响,呼呼呼 ...

  9. fakeLoader页面加载前loading演示8种效果

    提高用户体验的插件fakeLoader页面加载前loading演示8种效果 在线预览 下载地址 示例代码 <div id="main"> <div class=& ...

随机推荐

  1. SQLServer删除数据列

    删除数据列 开发或者生产过程中多建.错误或者重复的数据列需要进行删除操作. 使用SSMS数据库管理工具删除数据列 方式一 1.打开数据库->选择数据表->展开数据表->展开数据列-& ...

  2. 我的第一个python web开发框架(30)——定制ORM(六)

    在开发中,查询操作是使用最多的,而查询列表是其中之一,查询列表可分为分页查询和不分页查询(它们之间多了一次总记录数查询),还可以分为单表查询和多表关联查询,返回的结构体根据前端使用的表单框架不同而有所 ...

  3. springMVC DispatcherServlet类关系图

  4. 苹果手机连接Wifi认证机制

    Wifi状态保持方法和nas设备 https://patents.google.com/patent/CN106793171A/zh 基于ios终端的离线wifi热点认证方法和认证系统 https:/ ...

  5. ZJOI2019做题笔记

    麻将(期望.DP套DP) 先考虑如何计算一个子集是否能胡. 设\(f_{i,0/1,j,k}\)表示考虑了子集中\(1 \sim i\)的牌,是否找到对子,\(i-1,i,i+1\)预计拿\(j\)个 ...

  6. Codeforces Global Round 2 Solution

    这场题目设置有点问题啊,难度:Div.2 A->Div.2 B->Div.2 D->Div.2 C->Div.2 D->Div.1 D-> Div.1 E-> ...

  7. C++ 中 auto 与 decltype 的用法与区别

    最近在恶补 C++ 知识的时候,学习到了一些 C++11 标准的新特性,利用这些新特性,我们能够更快地提高编程效率,从而实现我们的目标,在此特意记下学习过程中所学习到的一些东西,方便日后的回顾和复习. ...

  8. 2019微信公开课 同行With Us 听课笔记及演讲全文

    [2019WeChat 微信公开课] 产品理念: 微信启动页 一个小人站在地球前面,每个人都有自己的理解和解读 所谓异类,表示与别人与众不同,即优秀的代名词. 微信的与众不同体现在尊重用户对产品的感受 ...

  9. JQuery 选择某个td中第二个a标签 控制特殊样式

    a标签没有disabled属性,那么当我们想禁用a标签的点击事件的时候按照下面方法设置. 下面是html代码: <a id="entry” class="entry" ...

  10. MongoDB系列:一、MongoDB和Redis区别

    简介 MongoDB更类似Mysql,支持字段索引.游标操作,其优势在于查询功能比较强大,擅长查询JSON数据,能存储海量数据,但是不支持事务. Mysql在大数据量时效率显著下降,MongoDB更多 ...