純CSS流星雨背景的示例代碼_第1頁
純CSS流星雨背景的示例代碼_第2頁
純CSS流星雨背景的示例代碼_第3頁
純CSS流星雨背景的示例代碼_第4頁
純CSS流星雨背景的示例代碼_第5頁
已閱讀5頁,還剩1頁未讀 繼續免費閱讀

下載本文檔

版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領

文檔簡介

第純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. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論