1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169
| <html lang="en">
<head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>中秋快乐</title> <style> * { margin: 0; padding: 0; } .wrap { background: #000000; width: 100vw; height: 100vh; position: relative; } .moon { width: 15vw; height: 15vw; border-radius: 50%; background-image: linear-gradient(40deg, #f9fabe, #fffd3b); position: absolute; top: 10%; right: 20%; box-shadow: 0 0 30px 0px #fffd3b, 0 0 80px 0 #ffffff; animation: moonflashing 3s linear infinite; } @keyframes moonflashing { 0% { filter: brightness(0.8); } 50% { filter: brightness(1.3); } 100% { filter: brightness(0.8); } } @keyframes starflashing { 0% { filter: brightness(0.3); } 50% { filter: brightness(1); } 100% { filter: brightness(0.3); } } .star { width: 2px; height: 2px; border-radius: 50%; background: #ffffff; position: absolute; animation: starflashing 2s infinite; } .star1 { top: 50%; right: 20%; } .star2 { top: 70%; right: 30%; } .star3 { top: 40%; left: 20%; } .star4 { top: 60%; right: 10%; } .star5 { top: 55%; right: 44%; } .star6 { top: 10%; left: 30%; } .star7 { top: 15%; left: 20%; }
.meteor { position: absolute; width: 4px; height: 4px; opacity: 0; background: #ffffff; border-radius: 50%; box-shadow: 0 0 5px 5px #636262; } .meteor:after { content: ""; display: block; border: 0px solid #fff; border-width: 2px 100px; border-color: transparent transparent transparent rgba(255, 255, 255, 0.3); transform: rotate(-45deg) translate3d(1px, 1px, 0); transform-origin: 0% 0%; } .meteor1 { top: 2vh; left: 30vw; animation: meteorflashing 2s infinite linear 1s; } .meteor2 { top: 22vh; left: 80vw; background: rgb(234, 0, 255); animation: meteorflashing 2s infinite linear 1s; } .meteor3 { top: 30vh; left: 40vw; animation: meteorflashing 3s infinite linear 2s; } .meteor4 { top: 10vh; left: 50vw; animation: meteorflashing 3s infinite linear 1s; } .meteor5 { top: 50vh; right: 2vw; animation: meteorflashing 3s infinite linear 3s; } @keyframes meteorflashing { 0% { opacity: 0; transform: scale(0) translate3d(0, 0, 0); } 50% { opacity: 1; transform: scale(1) translate3d(-200px, 200px, 0); } 100% { opacity: 0; transform: scale(1) translate3d(-500px, 500px, 0); } } </style> </head>
<body> <div class="wrap"> <div class="moon"></div> <div class="star star1"></div> <div class="star star2"></div> <div class="star star3"></div> <div class="star star4"></div> <div class="star star5"></div> <div class="star star6"></div> <div class="star star7"></div> <div class="meteor meteor1"></div> <div class="meteor meteor2"></div> <div class="meteor meteor3"></div> <div class="meteor meteor4"></div> <div class="meteor meteor5"></div> </div> </body>
</html>
|