兼容ie10及以上css3加载进度动画
2024-10-14 05:40:02
html
<div
class
=
"spinner"
>
<div
class
=
"rect1"
></div>
<div
class
=
"rect2"
></div>
<div
class
=
"rect3"
></div>
<div
class
=
"rect4"
></div>
<div
class
=
"rect5"
></div>
</div>
css
.spinner {
margin
:
100px
auto
;
width
:
50px
;
height
:
60px
;
text-align
:
center
;
font-size
:
10px
;
}
.spinner > div {
background-color
:
#67CF22
;
height
:
100%
;
width
:
6px
;
display
: inline-
block
;
-webkit-animation: stretchdelay
1.2
s infinite ease-in-out;
animation: stretchdelay
1.2
s infinite ease-in-out;
}
.spinner .rect
2
{
-webkit-animation-delay:
-1.1
s;
animation-delay:
-1.1
s;
}
.spinner .rect
3
{
-webkit-animation-delay:
-1.0
s;
animation-delay:
-1.0
s;
}
.spinner .rect
4
{
-webkit-animation-delay:
-0.9
s;
animation-delay:
-0.9
s;
}
.spinner .rect
5
{
-webkit-animation-delay:
-0.8
s;
animation-delay:
-0.8
s;
}
@-webkit-keyframes stretchdelay {
0%
,
40%
,
100%
{ -webkit-transform: scaleY(
0.4
) }
20%
{ -webkit-transform: scaleY(
1.0
) }
}
@keyframes stretchdelay {
0%
,
40%
,
100%
{
transform: scaleY(
0.4
);
-webkit-transform: scaleY(
0.4
);
}
20%
{
transform: scaleY(
1.0
);
-webkit-transform: scaleY(
1.0
);
}
}
最新文章
- Metaio获取当前追踪的对象的方法
- Android在listview添加checkbox实现单选多选操作问题(转)
- Krajee 文件上传
- c# dataGridview的Cellclick移除事件
- Xcode编译WebApps找不到js的错误解决办法<;转>;
- 让 zend studio 识别 Phalcon语法并且进行语法提示
- 移动app测试浅析
- office 文件在网页中显示
- 29. leetcode 167. Two Sum II - Input array is sorted
- 如何在MySQL中设置外键约束以及外键的作用
- OC内存管理-OC笔记
- Ceres Solver 在win8+vs2013环境下的安装
- AngularJS2+调用原有的js脚本(AngularJS脚本跟本地原有脚本之间的关系)
- 由AC自动机引发的灵感
- 【转】vue技术分享-你可能不知道的7个秘密
- qt之菜单栏的创建
- Steering Behaviors
- 查找和替换img src
- 扩展一个boot的插件—tooltip&;做一个基于boot的表达验证
- Python 爬虫 数据清洗 去掉 超链接