3 Star 18 Fork 7

杨得朝/web-test

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
CSS实现的loading页面等待效果.html 1.09 KB
一键复制 编辑 原始数据 按行查看 历史
杨得朝 提交于 2020-10-19 15:04 . subimit
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<style>
.loader{
position: relative;
width: 8px;
height: 35px;
background: red;
margin: 0 auto;
animation: loading 0.3s linear 0s infinite alternate;
}
.loader:after , .loader:before{
position: absolute;
content: '';
width: 8px;
height: 35px;
background: red;
}
.loader:after{
transform: scale(1,0.5);
margin-left: -10px;
animation: loading 0.5s linear 0.5s infinite alternate-reverse;
}
.loader:before{
transform: scale(1,0.3);
margin-left: 10px;
animation: loading 0.5s linear 0.5s infinite alternate-reverse;
}
@keyframes loading{
from{
opacity: 0.5;
transform: scale(1,0.5);
}
to{
opacity: 1;
transform: scale(1,1);
}
}
</style>
</head>
<body>
<div class="loader"></div>
</body>
</html>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
HTML
1
https://gitee.com/yangdechao_admin/web-test.git
git@gitee.com:yangdechao_admin/web-test.git
yangdechao_admin
web-test
web-test
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385