月色当空满天星流行效果
代码语言:html
所属分类:背景
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> * { margin: 0; padding: 0; } #wrapper { width: 100vw; height: 100vh; min-height: 600px; text-align: center; background: #000; position: relative; } #wrapper #moon { display: block; position: absolute; top: 21vh; left: 44vw; width: 100px; height: 100px; background: #001426; border-radius: 50%; z-index: 5; } #wrapper #moon:before { display: block; content: ""; width: 100px; height: 100px; border-radius: 50%; /*box-shadow: 21px 16px 2px 2px #fff;*/ position: absolute; z-index: 5; } #wrapper #moon:after { display: block; content: ""; width: 100px; height: 100px; border-radius: 50%; box-shadow: 20px 15px 1px 1px #fff; position: absolute; z-index: 5; filter: blur(1px); } #wrapper #skyContainer { overflow: hidden; width: 100%; height: 100%; position: relative; } #wrapper #skyContainer.night { background: linear-gradient(to bottom, #001426 60%, #023756); } #wrapper #skyContainer .shootingStar { position: absolute; width: 60px; height: 2px; right: -100px; background: linear-gradient(to right, white 10%, rgba(255, 255, 255, 0.2) 20%, rgba(0, 0, 0, 0) 100%); z-index: 3; } #wrapper #skyContainer .star { background: white; position: absolute; border-radius: 50%; webkit-box-shadow: 0px 0px 5px 0px rgba(1, 1, 1, 0.75); -moz-box-shadow: 0px 0px 5px 0px rgba(1, 1, 1, 0.75); box-shadow: 0px 0px 5px 0px rgba(1, 1, 1, 0.75); } .star:nth-of-type(2n) { animation: twinkle linear 3.5s infinite; } .star:nth-of-type(6n) { animation: fader linear 1.5s infinite; } .star:nth-of-type(2n) { animation: twinkle linear 3.5s infinite; } .star:nth-of-type(6n) { animation: fader linear 1.5s infinite; } .star:nth-of-type(2n) { animation: twinkle linear 3.5s infinite; } .star:nth-of-type(6n) { animation: fader linear 1.5s infinite; } .star:nth-of-type(2n) { animation: twinkle linear 3.5s infinite; } .star:nth-of-type(6n) { animation: fader linear 1.5s infinite; } .star:nth-of-type(2n) { animation: twinkle linear 3.5s infinite; } .star:nth-of-type(6n) { animation: fader linear 1.5s infinite; } .star:nth-of-type(2n) { animation: twinkle linear 3.5s infinite; } .star:nth-of-type(6n) { animation: fader linear 1.5s infinite; } .star:nth-of-type(2n) { animation: twinkle linear 3.5s infinite; } .star:nth-of-type(6n) { animation: fader linear 1.5s infinite; } .star:nth-of-type(2n) { animation: twinkle linear 3.5s infinite; } .star:nth-of-type(6n) { animation: fader linear 1.5s infinite; } .star:nth-of-type(2n) { animation: twinkle linear 3.5s infinite; } .star:nth-of-type(6n) { animation: fader linear 1.5s infinite; } .star:nth-of-type(2n) { animation: twinkle linear 3.5s infinite; } .star:nth-of-type(6n) { animation: fader linear 1.5s infinite; } .star:nth-of-type(2n) { animation: twinkle linear 3.5s infinite; } .star:nth-of-type(6n) { animation: fader linear 1.5s infinite; } .star:nth-of-type(2n) { animation: twinkle linear 3.5s infinite; } .star:nth-of-type(6n) { animation: fader linear 1.5s infinite; } .star:nth-of-type(2n) { animation: twinkle linear 3.5s infinite; } .star:nth-of-type(6n) { animation: fader linear 1.5s infinite; } .star:nth-of-type(2n) { animation: twinkle linear 3.5s infinite; } .star:nth-of-type(6n) { animation: fader linear 1.5s infinite; } .star:nth-of-type(2n) { animation: twinkle linear 3.5s infinite; } .star:nth-of-type(6n) { animation: fader linear 1.5s infinite; } .star:nth-of-type(2n) { animation: twinkle linear 3.5s infinite; } .star:nth-of-type(6n) { animation: fader linear 1.5s infinite; } .star:nth-of-type(2n) { animation: twinkle linear 3.5s infinite; } .star:nth-of-type(6n) { animation: fader linear 1.5s infinite; } .star:nth-of-type(2n) { animation: twinkle linear 3.5s infinite; } .star:nth-of-type(6n) { animation: fader linear 1.5s infinite; } .star:nth-of-type(2n) { animation: twinkle linear 3.5s infinite; } .star:nth-of-type(6n) { animation: fader linear 1.5s infinite; } .star:nth-of-type(2n) { animation: twinkle linear 3.5s infinite; } .star:nth-of-type(6n) { animation: fader linear 1.5s infinite; } .star:nth-of-type(2n) { animation: twinkle linear 3.5s infinite; } .star:nth-of-type(6n) { animation: fader linear 1.5s infinite; } .star:nth-of-type(2n) { animation: twinkle linear 3.5s infinite; } .star:nth-of-type(6n) { animation: fader linear 1.5s infinite; } .star:nth-of-type(2n) { animation: twinkle linear 3.5s infinite; } .star:nth-of-type(6n) { animation: fader linear 1.5s infinite; } .star:nth-of-type(2n) { animation: twinkle linear 3.5s infinite; } .star:nth-of-type(6n) { animation: fader linear 1.5s infinite; } .star:nth-of-type(2n) { animation: twinkle linear 3.5s infinite; } .star:nth-of-type(6n) { animation: fader linear 1.5s infinite; } .star:nth-of-type(2n) { animation: twinkle linear 3.5s infinite; } .star:nth-of-type(6n) { animation: fader linear 1.5s infinite; } .star:nth-of-type(2n) { animation: twinkle linear 3.5s infinite; } .star:nth-of-type(6n) { animation: fader linear 1.5s infinite; } .star:nth-of-type(2n) { animation: twinkle linear 3.5s infinite; } .star:nth-of-type(6n) { animation: fader linear 1.5s infinite; } .star:nth-of-type(2n) { animation: twinkle linear 3.5s infinite; } .star:nth-of-type(6n) { animation: fader linear 1.5s infinite; } .star:nth-of-type(2n) { animation: twinkle linear 3.5s infinite; } .star:nth-of-type(6n) { animation: fader linear 1.5s infinite; } .star:nth-of-type(2n) { animation: twinkle linear 3.5s infinite; } .star:nth-of-type(6n) { animation: fader linear 1.5s infinite; } .star:nth-of-type(2n) { animation: twinkle linear 3.5s infinite; } .star:nth-of-type(6n) { animation: fader linear 1.5s infinite; } .star:nth-of-type(2n) { animation: twinkle linear 3.5s infinite; } .star:nth-of-type(6n) { animation: fader linear 1.5s infinite; } .star:nth-of-type(2n) { animation: twinkle linear 3.5s infinite; } .star:nth-of-type(6n) { animation: fader linear 1.5s infinite; } .star:nth-of-type(2n) { animation: twinkle linear 3.5s infinite; } .star:nth-of-type(6n) { animation: fader linear 1.5s infinite; } .star:nth-of-type(2n) { animation: twinkle linear 3.5s infinite; } .star:nth-of-type(6n) { animation: fader linear 1.5s infinite; } .star:nth-of-type(2n) { animation: twinkle linear 3.5s infinite; } .star:nth-of-type(6n) { animation: fader linear 1.5s infinite; } .star:nth-of-type(2n) { animation: twinkle linear 3.5s infinite; } .star:nth-of-type(6n) { animation: fader linear 1.5s infinite; } .star:nth-of-type(2n) { animation: twinkle linear 3.5s infinite; } .star:nth-of-type(6n) { animation: fader linear 1.5s infinite; } .star:nth-of-type(2n) { animation: twinkle linear 3.5s infinite; } .star:nth-of-type(6n) { animation: fader linear 1.5s infinite; } .star:nth-of-type(2n) { animation: twinkle linear 3.5s infinite; } .star:nth-of-type(6n) { animation: fader linear 1.5s infinite; } .star:nth-of-type(2n) { animation: twinkle linear 3.5s infinite; } .star:nth-of-type(6n) { animation: fader linear 1.5s infinite; } .star:nth-of-type(2n) { animation: twinkle linear 3.5s infinite; } .star:nth-of-type(6n) { animation: fader linear 1.5s infinite; } .star:nth-of-type(2n) { animation: twinkle linear 3.5s infinite; } .star:nth-of-type(6n) { animation: fader linear 1.5s infinite; } .star:nth-of-type(2n) { animation: twinkle linear 3.5s infinite; } .star:nth-of-type(6n) { animation: fader linear 1.5s infinite; } .star:nth-of-type(2n) { animation: twinkle linear 3.5s infinite; } .star:nth-of-type(6n) { animation: fader linear 1.5s infinite; } .star:nth-of-type(2n) { animation: twinkle linear 3.5s infinite; } .star:nth-of-type(6n) { animation: fader linear 1.5s infinite; } .star:nth-of-type(2n) { animation: twinkle linear 3.5s infinite; } .star:nth-of-type(6n) { animation: fader linear 1.5s infinite; } .star:nth-of-type(2n) { animation: twinkle linear 3.5s infinite; } .star:nth-of-type(6n) { animation: fader linear 1.5s infinite; } .star:nth-of-type(2n) { animation: twinkle linear 3.5s infinite; } .star:nth-of-type(6n) { animation: fader linear 1.5s infinite; } .star:nth-of-type(2n) { animation: twinkle linear 3.5s infinite; } .star:nth-of-type(6n) { animation: fader linear 1.5s infinite; } .star:nth-of-type(2n) { animation: twinkle linear 3.5s infinite; } .star:nth-of-type(6n) { animation: fader linear 1.5s infinite; } .star:nth-of-type(2n) { animation: twinkle linear 3.5s infinite; } .star:nth-of-type(6n) { animation: fader linear 1.5s infinite; } .star:nth-of-type(2n) { animation: twinkle linear 3.5s infinite; } .star:nth-of-type(6n) { animation: fader linear 1.5s infinite; } .star:nth-of-type(2n) { animation: twinkle linear 3.5s infinite; } .star:nth-of-type(6n) { animation: fader linear 1.5s infinite; } .star:nth-of-type(2n) { animation: twinkle linear 3.5s infinite; } .star:nth-of-type(6n) { animation: fader linear 1.5s infinite; } .star:nth-of-type(2n) { animation: twinkle linear 3.5s infinite; } .star:nth-of-type(6n) { animation: fader linear 1.5s infinite; } .star:nth-of-type(2n) { animation: twinkle linear 3.5s infinite; } .star:nth-of-type(6n) { animation: fader linear 1.5s infinite; } .star:nth-of-type(2n) { animation: twinkle linear 3.5s infinite; } .star:nth-of-type(6n) { animation: fader linear 1.5s infinite; } .star:nth-of-type(2n) { animation: twinkle linear 3.5s infinite; } .star:nth-of-type(6n) { animation: fader linear 1.5s infinite; } .star:nth-of-type(2n) { animation: twinkle linear 3.5s infinite; } .star:nth-of-type(6n) { animation: fader linear 1.5s infinite; } .star:nth-of-type(2n) { animation: twinkle linear 3.5s infinite; } .star:nth-of-type(6n) { animation: fader linear 1.5s infinite; } .star:nth-of-type(2n) { animation: twinkle linear 3.5s infinite; } .star:nth-of-type(6n) { animation: fader linear 1.5s infinite; } .star:nth-of-type(2n) { animation: twinkle linear 3.5s infinite; } .star:nth-of-type(6n) { animation: fader linear 1.5s infinite; } .star:nth-of-type(2n.........完整代码请登录后点击上方下载按钮下载查看
网友评论0