用的时候得注意下兼容性,现代浏览器chrome、ff、edge以及移动端都是可以的,ie 9以下的就不行了。
代码如下:
css样式
.spinner {
margin: 0 auto;
width: 82px;
text-align: center;
}
#fancybox-loading {
position: fixed;
top: 50%;
left: 50%;
margin-top: -9px;
margin-left: -41px;
opacity: .8;
cursor: pointer;
z-index: 8060;
}
.spinner>div {
margin: 0 2px;
width: 18px;
height: 18px;
background-color: #333;
-webkit-border-radius: 100%;
-moz-border-radius: 100%;
-ms-border-radius: 100%;
-o-border-radius: 100%;
border-radius: 100%;
display: inline-block;
-webkit-animation: sk-bouncedelay 1.4s infinite ease-in-out both;
-moz-animation: sk-bouncedelay 1.4s infinite ease-in-out both;
-ms-animation: sk-bouncedelay 1.4s infinite ease-in-out both;
-o-animation: sk-bouncedelay 1.4s infinite ease-in-out both;
animation: sk-bouncedelay 1.4s infinite ease-in-out both;
}
.spinner .bounce1 {
-webkit-animation-delay: -.32s;
-moz-animation-delay: -.32s;
-ms-animation-delay: -.32s;
-o-animation-delay: -.32s;
animation-delay: -.32s;
}
.spinner .bounce2 {
-webkit-animation-delay: -.16s;
-moz-animation-delay: -.16s;
-ms-animation-delay: -.16s;
-o-animation-delay: -.16s;
animation-delay: -.16s;
}
@keyframes sk-bouncedelay {
0%,80%,100% {
-webkit-transform: scale(0);
-moz-transform: scale(0);
-ms-transform: scale(0);
-o-transform: scale(0);
transform: scale(0)
}
40% {
-webkit-transform: scale(1);
-moz-transform: scale(1);
-ms-transform: scale(1);
-o-transform: scale(1);
transform: scale(1)
}
}html结构
天缘企业网站系统NET版主要功能: 基本设置:站点常规属性设置。 导航管理:添加/删除导航菜单,隐藏与显示。 单页管理:增加修改单页,通过强大的编辑器可插入动画图片视频等内容。 新闻管理:新闻分类管理,增加/删除/修改新闻。 产品管理:产品二级分类,产品略缩图,产品推荐,增/删/改产品。 下载管理:下载分类管理,可做软件下载,文件下载等功能。 幻灯管理:幻灯添加、幻灯修改等。 招聘管理:在线发布招
立即学习“前端免费学习笔记(深入)”;
更多大疆官网的视频加载动画 by css3 animation相关文章请关注PHP中文网!









