1 Star 2 Fork 0

Zong/Vzig-Admin

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
index.html 2.21 KB
一键复制 编辑 原始数据 按行查看 历史
Zong 提交于 2022-12-02 16:22 . feat:实现主题颜色切换
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" href="/VzigLogo.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title><%- title %></title>
</head>
<body>
<div id="app">
<style>
html,
body,
#app {
width: 100%;
height: 100%;
padding: 0;
margin: 0;
}
#loader {
position: absolute;
top: calc(50% - 20px);
left: calc(50% - 20px);
}
@keyframes loader {
0% {
left: -100px;
}
100% {
left: 110%;
}
}
#box {
width: 50px;
height: 50px;
background: #409eff;
animation: animate 0.5s linear infinite;
position: absolute;
top: 0;
left: 0;
border-radius: 3px;
}
@keyframes animate {
17% {
border-bottom-right-radius: 3px;
}
25% {
transform: translateY(9px) rotate(22.5deg);
}
50% {
transform: translateY(18px) scale(1, 0.9) rotate(45deg);
border-bottom-right-radius: 40px;
}
75% {
transform: translateY(9px) rotate(67.5deg);
}
100% {
transform: translateY(0) rotate(90deg);
}
}
#shadow {
width: 50px;
height: 5px;
background: #000;
opacity: 0.1;
position: absolute;
top: 59px;
left: 0;
border-radius: 50%;
animation: shadow 0.5s linear infinite;
}
@keyframes shadow {
50% {
transform: scale(1.2, 1);
}
}
#loading-text {
position: absolute;
top: calc(50% + 50px);
left: calc(50% - 50px);
}
body {
overflow: hidden;
}
</style>
<div id="loader">
<div id="shadow"></div>
<div id="box"></div>
</div>
<p id="loading-text">加载中,请稍后……</p>
</div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zong-james/zong-admin.git
git@gitee.com:zong-james/zong-admin.git
zong-james
zong-admin
Vzig-Admin
master

搜索帮助