




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡介
第純CSS流星雨背景的示例代碼插件預(yù)覽圖
使用教程代碼展示
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. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 資產(chǎn)配置中的信用風(fēng)險(xiǎn)管理技術(shù)與策略應(yīng)用考核試卷
- 汽車制造產(chǎn)能調(diào)整策略考核試卷
- 船舶改裝項(xiàng)目施工過程中的質(zhì)量保障措施優(yōu)化考核試卷
- 藤編家具行業(yè)人才培養(yǎng)與技術(shù)創(chuàng)新體系建設(shè)戰(zhàn)略考核試卷
- 運(yùn)動(dòng)服裝的智能纖維技術(shù)與發(fā)展趨勢考核試卷
- 電機(jī)在電力市場運(yùn)營中的應(yīng)用考核試卷
- 連續(xù)搬運(yùn)設(shè)備環(huán)境適應(yīng)性設(shè)計(jì)方法研究進(jìn)展考核試卷
- 藝術(shù)家作品的藝術(shù)風(fēng)格演變與文化傳承考核試卷
- 電氣工程項(xiàng)目管理與協(xié)調(diào)考核試卷
- 電動(dòng)機(jī)制造中的電機(jī)熱保護(hù)技術(shù)考核試卷
- 醫(yī)院醫(yī)學(xué)倫理委員會(huì)相關(guān)表格模版(共3個(gè))
- 中復(fù)神鷹碳纖維西寧有限公司年產(chǎn)14000噸高性能碳纖維及配套原絲建設(shè)項(xiàng)目環(huán)評報(bào)告
- 質(zhì)量管理小組活動(dòng)準(zhǔn)則TCAQ10201-2020
- GB/T 43293-2022鞋號
- YC/T 215-2007煙草行業(yè)聯(lián)運(yùn)通用平托盤
- JJF 1751-2019菌落計(jì)數(shù)器校準(zhǔn)規(guī)范
- GB/T 40805-2021鑄鋼件交貨驗(yàn)收通用技術(shù)條件
- 中考?xì)v史-世界近現(xiàn)代國際關(guān)系復(fù)習(xí)課件
- 報(bào)價(jià)單模板及范文(通用十二篇)
- 五年級異分母分?jǐn)?shù)加減法第一課時(shí)課件
- 幼兒繪本故事:什么都行的哈力船長
評論
0/150
提交評論