




版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領
文檔簡介
第純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-2026學年阜陽市太和縣數學三上期末學業質量監測模擬試題含解析
- 2025-2026學年德惠市三年級數學第一學期期末復習檢測試題含解析
- 2024年徐州市沛縣三年級數學第一學期期末聯考模擬試題含解析
- 2024年瀘州市龍馬潭區數學三上期末復習檢測試題含解析
- 2024年嘉興市桐鄉市數學三年級第一學期期末學業水平測試試題含解析
- 主管護師能力提升試題及答案
- 中國文化與全球化的關系研究試題及答案
- 藥物分類與臨床適應癥解析試題及答案
- 行政管理的創新思維試題及答案
- 行政法學權威試題及答案匯集
- 少年中國說五線譜樂譜
- 上海建工集團工具化、定型化、標準化安全防護設施圖集
- 化工裝置開車前檢查確認表
- 隧道工程各施工階段質量控制要點
- 旅游產品策劃與設計課件(完整版)
- 公共管理學(第3版)教學課件匯總完整版電子教案
- 一二三級配電箱原理圖、施工臨電平面圖
- 潔凈車間生產管理制度
- DB23∕T 1019-2020 黑龍江省建筑工程資料管理標準
- 杭州市市區歷年公房租金調整一覽表
- 熱力小室方案計劃全
評論
0/150
提交評論