纯css3流星雨_html/css_WEB-ITnose
1 <!DOCTYPE html> 2 <html lang="en"> 3 <head> 4 <meta charset="UTF-8"> 5 <title>meteor</title> 6 <style> 7 *{ 8 padding:0; 9 margin:0; 10 } 11 body{ 12 background-color:#000; 13 overflow:hidden; 14 } 15 .author{ 16 color:#fff; 17 font:18px/1.5 "微软雅黑"; 18 animation:change 4s infinite; 19 } 20 .star{ 21 width:4px; 22 height:4px; 23 background-color:#fff; 24 display:block; 25 position:absolute; 26 top:110px; 27 right:800px; 28 border-radius:4px; 29 animation:star 1s infinite linear; 30 opacity:0; 31 } 32 .star:after{ 33 position:relative; 34 display:block; 35 top:-49px; 36 left:23px; 37 border:2px solid #fff; 38 border-width:0 0 0 1px; 39 width:100px; 40 height:100px; 41 content:""; 42 transform:rotate(45deg); 43 } 44 .blue{ 45 background-color:lightskyblue; 46 top:60px; 47 right:600px; 48 animation-delay:0.25s; 49 } 50 .blue:after{ 51 width:200px; 52 height:200px; 53 top:-99px; 54 left:43px; 55 border:2px solid lightskyblue; 56 border-width:0 0 0 1px; 57 } 58 .pink{ 59 background-color:lightpink; 60 top:160px; 61 right:500px; 62 animation:starPink 1s infinite linear; 63 animation-delay:0.5s; 64 } 65 .pink:after{ 66 width:133px; 67 height:133px; 68 top:-65px; 69 left:29px; 70 border:2px solid lightpink; 71 border-width:0 0 0 1px; 72 } 73 .yellow{ 74 background-color:yellow; 75 top:127px; 76 right:261px; 77 animation:starYellow 1s infinite linear; 78 animation-delay:0.75s; 79 } 80 .yellow:after{ 81 width:209px; 82 height:164px; 83 top:-65px; 84 left:29px; 85 border:2px solid yellow; 86 border-width:0 0 0 1px; 87 } 88 @keyframes change{ 89 0%{ 90 color:#fff; 91 } 92 25%{ 93 color:lightskyblue; 94 } 95 50%{ 96 color:lightpink; 97 } 98 75%{ 99 color:yellow;100 }101 }102 @keyframes star{103 0%{104 opacity:0;105 transform:scale(0) translate(0,0);106 }107 50%{108 opacity:1;109 transform:scale(1) translate(-200px,200px);110 }111 100%{112 opacity:0;113 transform:scale(1) translate(-400px,400px);114 }115 }116 @keyframes starPink{117 0%{118 opacity:0;119 transform:scale(0) translate(0,0);120 }121 50%{122 opacity:1;123 transform:scale(1) translate(-300px,300px);124 }125 100%{126 opacity:0;127 transform:scale(1) translate(-600px,600px);128 }129 }130 @keyframes starYellow{131 0%{132 opacity:0;133 transform:scale(0) translate(0,0);134 }135 50%{136 opacity:1;137 transform:scale(1) translate(-300px,300px);138 }139 100%{140 opacity:0;141 transform:scale(1) translate(-600px,600px);142 }143 }144 </style>145 </head>146 <body>147 <span class="author">by Scott</span>148 <span class="star"></span>149 <span class="star blue"></span>150 <span class="star pink"></span>151 <span class="star yellow"></span>152 </body>153 </html>
demo 链接:http://wangpengfei15975.github.io/MyBlog

熱AI工具

Undresser.AI Undress
人工智慧驅動的應用程序,用於創建逼真的裸體照片

AI Clothes Remover
用於從照片中去除衣服的線上人工智慧工具。

Undress AI Tool
免費脫衣圖片

Clothoff.io
AI脫衣器

Video Face Swap
使用我們完全免費的人工智慧換臉工具,輕鬆在任何影片中換臉!

熱門文章

熱工具

記事本++7.3.1
好用且免費的程式碼編輯器

SublimeText3漢化版
中文版,非常好用

禪工作室 13.0.1
強大的PHP整合開發環境

Dreamweaver CS6
視覺化網頁開發工具

SublimeText3 Mac版
神級程式碼編輯軟體(SublimeText3)

HTML適合初學者學習,因為它簡單易學且能快速看到成果。 1)HTML的學習曲線平緩,易於上手。 2)只需掌握基本標籤即可開始創建網頁。 3)靈活性高,可與CSS和JavaScript結合使用。 4)豐富的學習資源和現代工具支持學習過程。

HTML定義網頁結構,CSS負責樣式和佈局,JavaScript賦予動態交互。三者在網頁開發中各司其職,共同構建豐富多彩的網站。

WebDevelovermentReliesonHtml,CSS和JavaScript:1)HTMLStructuresContent,2)CSSStyleSIT和3)JavaScriptAddSstractivity,形成thebasisofmodernWebemodernWebExexperiences。

GiteePages靜態網站部署失敗:404錯誤排查與解決在使用Gitee...

AnexampleOfAstartingTaginHtmlis,beginSaparagraph.startingTagSareEssentialInhtmlastheyInitiateEllements,defiteTheeTheErtypes,andarecrucialforsstructuringwebpages wepages webpages andConstructingthedom。

實現圖片點擊後周圍圖片散開並放大效果許多網頁設計中,需要實現一種交互效果:點擊某張圖片,使其周圍的...

HTML、CSS和JavaScript是Web開發的三大支柱。 1.HTML定義網頁結構,使用標籤如、等。 2.CSS控製網頁樣式,使用選擇器和屬性如color、font-size等。 3.JavaScript實現動態效果和交互,通過事件監聽和DOM操作。

網頁批註功能的Y軸位置自適應算法本文將探討如何實現類似Word文檔的批註功能,特別是如何處理批註之間的間�...
