首页 技术 正文
技术 2022年11月6日
0 收藏 458 点赞 898 浏览 2146 个字

参考秒味课堂 代码发出来备忘

html

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>test</title>
<link rel="stylesheet" href="test.css" rel="external nofollow" type="text/css" />
</head>
<body>
<div class="loading">
<div class="load">
<div class="layer"></div>
<div class="layer2"></div>
<div class="text">25%</div>
</div>
<div class="loadshadow"></div>
</div>
</body>
</html>

css3

body {position: relative;}
@keyframes shadow
{
0%
{
-webkit-transform: scale(0.8); opacity: 0.5;
-moz-transform: scale(0.8); opacity: 0.5;
-ms-transform: scale(0.8); opacity: 0.5;
-o-transform: scale(0.8); opacity: 0.5;
transform: scale(0.8); opacity: 0.5;
}
100%
{
-webkit-transform: scale(1); opacity: 1;
-moz-transform: scale(1); opacity: 1;
-ms-transform: scale(1); opacity: 1;
-o-transform: scale(1); opacity: 1;
transform: scale(1); opacity: 1;
}
}
@keyframes move1
{
0%
{
-webkit-transform: translateY(7px);
-moz-transform: translateY(7px);
-ms-transform: translateY(7px);
-o-transform: translateY(7px);
transform: translateY(7px);
}
100%
{
-webkit-transform: translateY(0px);
-moz-transform: translateY(0px);
-ms-transform: translateY(0px);
-o-transform: translateY(0px);
transform: translateY(0px);
}
}
@keyframes move2
{
0%
{
transform:rotate(0deg);
}
100%
{
transform: rotate(-360deg);
}
}
@keyframes move3
{
0%
{
transform: rotate(0deg);
}
100%
{
transform: rotate(360deg);
}
}.loading { width: 120px; height: 140px; position: fixed; left:calc(50% - 60px); top:calc(50% - 70px);}
.load {width: 120px; height: 100px; background: url(./image/loading3.png); position: absolute;left: 0px; top: 0px; -webkit-animation: .5s move1 infinite alternate linear; animation: .5s move1 infinite alternate linear;}
.layer {width:120px; height:100px; background: url(./image/loading4.png) no-repeat; position: absolute; top: 0px; left: 0px; animation: 1.2s move2 infinite linear;}
.layer2 {width: 120px; height: 100px; background: url(./image/loading5.png) no-repeat; position: absolute; top:0px; left: 0px; animation:1.2s move3 infinite linear;}
.text { width: 120px; height: 100px; position: absolute; top: 0px; left: 0px; text-align: center; line-height: 100px; font:bold 16px/100px bold; color:#f9725c;}
.loadshadow{ width: 100px; height: 20px; margin:0 auto; background:-webkit-radial-gradient(contain,rgba(0,0,0,0.7),rgba(0,0,0,0)); position: absolute; left:10px; bottom:0px;-webkit-animation: .5s shadow infinite alternate linear;}
相关推荐
python开发_常用的python模块及安装方法
adodb:我们领导推荐的数据库连接组件bsddb3:BerkeleyDB的连接组件Cheetah-1.0:我比较喜欢这个版本的cheeta…
日期:2022-11-24 点赞:878 阅读:8,996
Educational Codeforces Round 11 C. Hard Process 二分
C. Hard Process题目连接:http://www.codeforces.com/contest/660/problem/CDes…
日期:2022-11-24 点赞:807 阅读:5,510
下载Ubuntn 17.04 内核源代码
zengkefu@server1:/usr/src$ uname -aLinux server1 4.10.0-19-generic #21…
日期:2022-11-24 点赞:569 阅读:6,353
可用Active Desktop Calendar V7.86 注册码序列号
可用Active Desktop Calendar V7.86 注册码序列号Name: www.greendown.cn Code: &nb…
日期:2022-11-24 点赞:733 阅读:6,137
Android调用系统相机、自定义相机、处理大图片
Android调用系统相机和自定义相机实例本博文主要是介绍了android上使用相机进行拍照并显示的两种方式,并且由于涉及到要把拍到的照片显…
日期:2022-11-24 点赞:512 阅读:7,770
Struts的使用
一、Struts2的获取  Struts的官方网站为:http://struts.apache.org/  下载完Struts2的jar包,…
日期:2022-11-24 点赞:671 阅读:4,848