最新下载
24小时阅读排行榜
- 1 win11安装程序无法创建新的系统分区怎么办_win11系统分区创建失败的解决方案
- 2 Linux命令行中ps命令的使用方法
- 3 Python pandas 性能优化技巧
- 4 Linux tc命令流量控制使用方法
- 5 win11怎么更改用户文件夹名称 win11修改C盘用户文件夹名称教程
- 6 床垫上的尿渍怎么去除?
- 7 win10无法访问您所在的单位网络_无法访问单位网络的权限解决方法
- 8 win10提示“RPC服务器不可用”_RPC服务远程过程调用失败错误修复
- 9 JAX自定义Module梯度计算指南:理解与实践PyTree机制
- 10 win11麦克风没声音或无法使用的解决办法_Win11麦克风无响应问题修复指南
- 11 html超链接字体颜色修改需要什么代码
- 12 win10网络重置后无法上网_执行网络重置后断网问题修复
- 13 win10更新后没有声音怎么办_Win10更新后声卡驱动问题修复
- 14 python安装cv2模块的方法
- 15 python如何改变工作目录_python os模块更改当前工作目录方法
最新教程
-
- Node.js 教程
- 2855 2025-08-28
-
- CSS3 教程
- 309348 2025-08-27
-
- Rust 教程
- 3513 2025-08-27
-
- Vue 教程
- 4242 2025-08-22
-
- PostgreSQL 教程
- 4406 2025-08-21
-
- Git 教程
- 3345 2025-08-21
这是一款纯css3实现的太空中宇航员掉落动画效果
<style>
*{
margin: 0;
padding: 0;
}
body{
background-color: #102037;
overflow: hidden;
}
@-webkit-keyframes snow {
0% { opacity: 0; -webkit-transform: translateY(0px); transform: translateY(0px); }
20%{ opacity: 1;}
100% { opacity: 1; -webkit-transform: translateY(650px); transform: translateY(650px); }
}
@keyframes snow {
0% { opacity: 0; -webkit-transform: translateY(0px); transform: translateY(0px); }
20%{ opacity: 1;}
100% { opacity: 1; -webkit-transform: translateY(650px); transform: translateY(650px); }
}
@-webkit-keyframes astronaut{
0%{
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100%{
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
.box-of-star1,
.box-of-star2,
.box-of-star3,
.box-of-star4{
width: 100%;
position: absolute;
z-index: 10;
left: 0;
-webkit-transform: translateY(650px);
transform: translateY(650px);
}
.box-of-star1{
-webkit-animation: snow 5s linear infinite;
}
.box-of-star2{
-webkit-animation: snow 5s -1.64s linear infinite;
}
.box-of-star3{
-webkit-animation: snow 5s -2.30s linear infinite;
}
.box-of-star4{
-webkit-animation: snow 5s -3.30s linear infinite;
}
.star{
width: 3px;
height: 3px;
border-radius: 50%;
background-color: #FFF;
position: absolute;
z-index: 10;
opacity: .7;
}
.star:before{
content: "";
width: 6px;
height: 6px;
border-radius: 50%;
background-color: #FFF;
position: absolute;
z-index: 10;
top: 40px;
left: 70px;
opacity: .7;
}

