Update<国家反诈中心加载动画>
commit
b80c4bf77d
@ -0,0 +1,18 @@
|
||||
<div align="center">
|
||||
<img height="100px" alt="logo" src="https://img-bohe.lolicon.team/i/img/svg/logo.ico"/>
|
||||
<p><em>AyasakiMoe Studio</em></p>
|
||||
</div>
|
||||
|
||||
|
||||
## 项目名称
|
||||
|
||||
>Name: HTML+CSS学习库
|
||||
|
||||
## 协作者
|
||||
|
||||
> 赤月未咲
|
||||
> 花崎未咲
|
||||
|
||||
## 终章
|
||||
|
||||
奇怪的知识又增加了
|
@ -0,0 +1,50 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>国家反诈中心</title>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
|
||||
</head>
|
||||
<body>
|
||||
<div id="loading">
|
||||
<div class="fl">
|
||||
<span id="logo" class="fl" style="margin-left: 145px;">
|
||||
<img data-v-loadimg1="" src="https://img-bohe.lolicon.team/i/img/img-cdn/ChinaPoliceAntiFraud.webp"/>
|
||||
</span>
|
||||
<div id="RTXT" class="fl ml2e opcy0">
|
||||
<p class="clf margin_top_3em">Powered By</p>
|
||||
<p class="clf">国家反诈中心</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<h1>内容</h1>
|
||||
</div>
|
||||
<script>
|
||||
window.onload = function() {
|
||||
setTimeout(function() {
|
||||
setTimeout(loadingAnime1, 1000);
|
||||
setTimeout(loadingAnime2, 2000);
|
||||
setTimeout(loadingDisableAnime, 4000);
|
||||
setTimeout(loadingDisable, 6000);
|
||||
}, 100);
|
||||
};
|
||||
function loadingDisableAnime() {
|
||||
document.querySelector('#loading').classList.add('disable');
|
||||
}
|
||||
function loadingDisable() {
|
||||
document.querySelector('#loading').style.display = 'none';
|
||||
}
|
||||
function loadingAnime1() {
|
||||
document.querySelector('#logo').classList.add('logomove');
|
||||
}
|
||||
function loadingAnime2() {
|
||||
document.querySelector('#RTXT').classList.add('opcy1');
|
||||
document.querySelector('#RTXT').classList.remove('opcy0');
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,92 @@
|
||||
/* loading start */
|
||||
#loading {
|
||||
position: fixed;
|
||||
top: 0px;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
z-index: 10000;
|
||||
background-color: #084db5;
|
||||
display: -webkit-flex;
|
||||
display: -moz-flex;
|
||||
display: -ms-flex;
|
||||
display: -o-flex;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
flex-direction: column;
|
||||
}
|
||||
img[data-v-loadimg1]{
|
||||
width: 140px;
|
||||
height: 140px;
|
||||
overflow:hidden;
|
||||
}
|
||||
img[data-v-loadimg2]{
|
||||
width: 1.5rem;
|
||||
height: 1.5rem;
|
||||
overflow:hidden;
|
||||
}
|
||||
img[data-v-loadimg3]{
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
bottom: 4%;
|
||||
transform: translate(-50%);
|
||||
width: 140px;
|
||||
}
|
||||
.fl{
|
||||
float: left;
|
||||
}
|
||||
.ml2e{
|
||||
margin-left: 2em;
|
||||
}
|
||||
.margin_top_3em{
|
||||
margin-top: 3em;
|
||||
}
|
||||
.clf{
|
||||
color: #fff;
|
||||
}
|
||||
.opcy0{
|
||||
opacity: 0;
|
||||
}
|
||||
.opcy1{
|
||||
opacity: 1;
|
||||
animation: fadeIn 1s forwards;
|
||||
}
|
||||
.disable{
|
||||
animation: fadeOut 1s forwards;
|
||||
}
|
||||
.logomove{
|
||||
margin-left: 0;
|
||||
animation: moveleft 1s forwards;
|
||||
}
|
||||
/* 渐出动画 */
|
||||
@keyframes fadeOut {
|
||||
0% {
|
||||
opacity: 1;
|
||||
}
|
||||
100% {
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
/* 渐入动画 */
|
||||
@keyframes fadeIn {
|
||||
0% {
|
||||
opacity: 0;
|
||||
}
|
||||
100% {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
/* 移动动画 */
|
||||
@keyframes moveleft {
|
||||
0% {
|
||||
margin-left: 145px;
|
||||
}
|
||||
100% {
|
||||
margin-left: 0; }
|
||||
}
|
||||
#RTXT p {
|
||||
font-family: "微软雅黑";
|
||||
font-weight: 700;
|
||||
}
|
||||
/* loading end */
|
Loading…
Reference in New Issue