6 Star 60 Fork 19

北极光之夜/blog网页特效源码

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
css充电特效.html 3.35 KB
一键复制 编辑 原始数据 按行查看 历史
北极光之夜 提交于 2021-09-27 22:19 . 'before-code'
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
body{
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background-color: rgb(189, 189, 189);
}
.container{
position: relative;
width: 200px;
height: 300px;
background-color: rgb(255, 255, 255);
border-radius: 10px;
box-shadow: 0 0 10px rgb(255, 255, 255) ;
}
.container::after{
content: '';
position: absolute;
top: -20px;
left: 50%;
width: 40px;
height: 20px;
transform: translateX(-50%);
background-color: rgb(255, 255, 255);
border-top-right-radius: 10px;
border-top-left-radius: 10px;
box-shadow: 0 0 10px rgb(255, 255, 255) ;
}
.water{
position: absolute;
bottom: 0;
width: 100%;
background-image: linear-gradient(0deg,rgb(9, 198, 245),rgb(44, 243, 120));
border-bottom-right-radius: 10px;
border-bottom-left-radius: 10px;
animation: rise 12s linear forwards;
overflow: hidden;
}
@keyframes rise{
0%{
height: 50px;
}
100%{
height: 80%;
filter: hue-rotate(360deg);
}
}
.water::after{
content: '';
position: absolute;
top: -370px;
left: -100px;
width: 400px;
height: 400px;
border-radius: 40%;
background-color: rgb(255, 255, 255);
animation: move 5s linear infinite;
}
@keyframes move{
100%{
transform: rotate(360deg);
}
}
.water::before{
content: '';
position: absolute;
top: -360px;
left: -100px;
width: 400px;
height: 400px;
border-radius: 45%;
background-color: rgba(255, 255, 255,.5);
animation: move2 7s linear infinite;
}
@keyframes move2{
100%{
transform: rotate(360deg);
}
}
.shadow{
position: absolute;
bottom: -8px;
left: -3%;
width: 106%;
background-image: linear-gradient(0deg,rgb(9, 198, 245),rgb(44, 243, 120));
z-index: -1;
animation: bianse 12s linear forwards;
}
@keyframes bianse{
0%{
height: 50px;
filter: hue-rotate(0deg) blur(10px);
}
100%{
height: 80%;
filter: hue-rotate(360deg) blur(10px);
}
}
</style>
</head>
<body>
<div class="container">
<div class="water"></div>
<div class="shadow"></div>
</div>
</body>
</html>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/aurora-in-winter/blog.git
[email protected]:aurora-in-winter/blog.git
aurora-in-winter
blog
blog网页特效源码
master

搜索帮助