1 Star 0 Fork 181

松本/koi-ui

forked from 于心/koi-ui 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
index.html 5.25 KB
一键复制 编辑 原始数据 按行查看 历史
于心 提交于 2024-09-06 19:16 . 👻feat: 略微修改
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/public/vite.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>%VITE_WEB_TITLE%</title>
<!-- 加载第一步开始 -->
<style>
.preloader {
background: #5838fc;
width: 100%;
height: 100%;
position: fixed;
left: 0;
top: 0;
z-index: 9999;
}
.loader-inner {
width: 70px;
height: 60px;
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
margin: auto;
}
.mask {
position: absolute;
border-radius: 2px;
overflow: hidden;
-webkit-perspective: 1000;
perspective: 1000;
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
}
.plane {
background: #fff;
width: 400%;
height: 100%;
position: absolute;
-webkit-transform: translate3d(0px, 0, 0);
transform: translate3d(0px, 0, 0);
/*transition: all 0.8s ease; */
z-index: 100;
-webkit-perspective: 1000;
perspective: 1000;
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
}
.animation {
transition: all 0.3s ease;
}
#top .plane {
z-index: 2000;
-webkit-animation: trans1 1.3s ease-in infinite 0s backwards;
animation: trans1 1.3s ease-in infinite 0s backwards;
}
#middle .plane {
-webkit-transform: translate3d(0px, 0, 0);
transform: translate3d(0px, 0, 0);
background: #fff;
-webkit-animation: trans2 1.3s linear infinite 0.3s backwards;
animation: trans2 1.3s linear infinite 0.3s backwards;
}
#bottom .plane {
z-index: 2000;
-webkit-animation: trans3 1.3s ease-out infinite 0.7s backwards;
animation: trans3 1.3s ease-out infinite 0.7s backwards;
}
#top {
width: 53px;
height: 20px;
left: 20px;
-webkit-transform: skew(-15deg, 0);
transform: skew(-15deg, 0);
z-index: 100;
}
#middle {
width: 33px;
height: 20px;
left: 20px;
top: 15px;
-webkit-transform: skew(-15deg, 40deg);
transform: skew(-15deg, 40deg);
}
#bottom {
width: 53px;
height: 20px;
top: 30px;
-webkit-transform: skew(-15deg, 0);
transform: skew(-15deg, 0);
}
.preloader p {
color: #fff;
position: absolute;
left: -50px;
top: 60px;
text-align: center;
font-size: 11px;
font-weight: 600;
font-style: italic;
letter-spacing: 0.5px;
text-transform: uppercase;
margin: 0;
width: 200px;
}
@-webkit-keyframes trans1 {
from {
-webkit-transform: translate3d(53px, 0, 0);
transform: translate3d(53px, 0, 0);
}
to {
-webkit-transform: translate3d(-250px, 0, 0);
transform: translate3d(-250px, 0, 0);
}
}
@keyframes trans1 {
from {
-webkit-transform: translate3d(53px, 0, 0);
transform: translate3d(53px, 0, 0);
}
to {
-webkit-transform: translate3d(-250px, 0, 0);
transform: translate3d(-250px, 0, 0);
}
}
@-webkit-keyframes trans2 {
from {
-webkit-transform: translate3d(-160px, 0, 0);
transform: translate3d(-160px, 0, 0);
}
to {
-webkit-transform: translate3d(53px, 0, 0);
transform: translate3d(53px, 0, 0);
}
}
@keyframes trans2 {
from {
-webkit-transform: translate3d(-160px, 0, 0);
transform: translate3d(-160px, 0, 0);
}
to {
-webkit-transform: translate3d(53px, 0, 0);
transform: translate3d(53px, 0, 0);
}
}
@-webkit-keyframes trans3 {
from {
-webkit-transform: translate3d(53px, 0, 0);
transform: translate3d(53px, 0, 0);
}
to {
-webkit-transform: translate3d(-220px, 0, 0);
transform: translate3d(-220px, 0, 0);
}
}
@keyframes trans3 {
from {
-webkit-transform: translate3d(53px, 0, 0);
transform: translate3d(53px, 0, 0);
}
to {
-webkit-transform: translate3d(-220px, 0, 0);
transform: translate3d(-220px, 0, 0);
}
}
</style>
<!-- 加载第一步结束 -->
</head>
<body>
<div id="app">
<!-- 第二步开始 -->
<div class="preloader">
<div class="loader-inner">
<div id="top" class="mask">
<div class="plane"></div>
</div>
<div id="middle" class="mask">
<div class="plane"></div>
</div>
<div id="bottom" class="mask">
<div class="plane"></div>
</div>
<p>美好的事情即将发生,请耐心等待...</p>
</div>
</div>
<!-- 第二步结束 -->
</div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/manbalChen/koi-ui.git
[email protected]:manbalChen/koi-ui.git
manbalChen
koi-ui
koi-ui
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385