




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
第纯CSS流星雨背景的示例代码插件预览图
使用教程代码展示
vue页面使用
template
view>
Style
stylelang=scss
.space{
width:100%;
height:100vh;
background:#121212;
.planet{
width:150px;
height:150px;
border-radius:50%;
background:#333;
position:absolute;
left:50%;
top:50%;
margin:-75px00-75px;
overflow:hidden;
z-index:2;
.planet_shadow{
position:absolute;
border-radius:50%;
height:100%;
width:100%;
top:-40%;
right:-10%;
border:35pxsolidrgba(0,0,0,.15);
.crater1,
.crater2,
.crater3,
.crater4{
position:absolute;
border-radius:50%;
background:rgba(0,0,0,.3);
box-shadow:inset3px3px0rgba(0,0,0,.2);
.crater1{
width:20px;
height:20px;
left:25%;
top:20%;
.crater2{
width:10px;
height:10px;
left:50%;
top:60%;
.crater3{
width:15px;
height:15px;
left:30%;
top:65%;
.crater4{
width:15px;
height:15px;
left:60%;
top:35%;
.star{
display:block;
width:5px;
height:5px;
border-radius:50%;
background:#FFF;
top:100px;
left:400px;
position:relative;
transform-origin:100%0;
animation:star-ani6sinfiniteease-out;
box-shadow:005px5pxrgba(255,255,255,.3);
opacity:0;
z-index:2;
.star:after{
content:'';
display:block;
top:0px;
left:4px;
border:0pxsolid#fff;
border-width:0px90px2px90px;
border-color:transparenttransparenttransparentrgba(255,255,255,.3);
transform:rotate(-45deg)translate3d(1px,3px,0);
box-shadow:001px0rgba(255,255,255,.1);
transform-origin:0%100%;
animation:shooting-ani3sinfiniteease-out;
.pink{
top:30px;
left:395px;
background:#ff5a99;
animation-delay:5s;
-webkit-animation-delay:5s;
-moz-animation-delay:5s;
.pink:after{
border-color:transparenttransparenttransparent#ff5a99;
animation-delay:5s;
-webkit-animation-delay:5s;
-moz-animation-delay:5s;
.blue{
top:35px;
left:432px;
background:cyan;
animation-delay:7s;
-webkit-animation-delay:7s;
-moz-animation-delay:7s;
.blue:after{
border-color:'transpareanimation-delay:12s';
-webkit-animation-delay:7s;
-moz-animation-delay:7s;
animation-delay:7s;
.yellow{
top:50px;
left:600px;
background:#ffcd5c;
animation-delay:5.8s;
.yellow:after{
border-color:transparenttransparenttransparent#ffcd5c;
animation-delay:5.8s;
@keyframesstar-ani{
0%{
opacity:0;
transform:scale(0)rotate(0)translate3d(0,0,0);
-webkit-transform:scale(0)rotate(0)translate3d(0,0,0);
-moz-transform:scale(0)rotate(0)translate3d(0,0,0);
50%{
opacity:1;
transform:scale(1)rotate(0)translate3d(-200px,200px,0);
-webkit-transform:scale(1)rotate(0)translate3d(-200px,200px,0);
-moz-transform:scale(1)rotate(0)translate3d(-200px,200px,0);
100%{
opacity:0;
transform:scale(1)rotate(0)translate3d(-300px,300px,0);
-webkit-transform:scale(1)rotate(0)tra
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025年浙江危险品运输从业资格考试模拟题及答案
- 安装工程劳动合同书
- 品牌代理销售协议条款细节内容说明
- 学校课外辅导项目合作协议
- 纺织服装业产品质量证明书(6篇)
- 电子商务运营能力及成果证明(6篇)
- 金融行业客户关系管理系统升级方案
- 现代农业种植项目合作协议
- 体育赛事赞助合同书
- 物业设施维修维护合同
- 一二三级配电箱原理图、施工临电平面图
- 洁净车间生产管理制度
- DB23∕T 1019-2020 黑龙江省建筑工程资料管理标准
- 杭州市市区历年公房租金调整一览表
- 高考考前指导(班主任)心理方面、应试复习方面等
- 热力小室方案计划全
- 丽声北极星分级绘本第一级上My Noisy Schoolbag课件
- 网络销售授权合同范本
- 建筑装饰专业中级职称理论考试题库-建设工程专业中级职称理论考试题库
- 小学六年级数学总复习讲座(课堂PPT)
- 西北院火力发电厂汽水管道支吊架设计手册_图文
评论
0/150
提交评论