css布局试下纸飞机夜色月空飞行动画404页面代码

代码语言:html

所属分类:布局界面

代码描述:css布局试下纸飞机夜色月空飞行动画404页面代码

代码标签: 飞机 夜色 月空 飞行 动画 404 页面

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!doctype html>
<html>

<head>
    <meta charset="utf-8">
    <title></title>

    <style>
        @import url("https://fonts.googleapis.com/css?family=Lato|Russo+One");
        *,
        *:after,
        *:before {
          box-sizing: border-box;
        }
        
        body {
          padding: 0;
          margin: 0;
        }
        
        .container {
          position: absolute;
          top: 0;
          left: 0;
          width: 100%;
          height: 100vh;
          overflow: hidden;
        }
        
        .container-star {
          background-image: linear-gradient(to bottom, #292256 0%, #8446cf 70%, #a871d6 100%);
        }
        .container-star:after {
          background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 40%, rgba(15, 10, 38, 0.2) 100%);
          content: "";
          width: 100%;
          height: 100%;
          position: absolute;
          top: 0;
        }
        
        .star-1 {
          position: absolute;
          border-radius: 50%;
          background-color: #ffffff;
          -webkit-animation: twinkle 5s infinite ease-in-out;
                  animation: twinkle 5s infinite ease-in-out;
        }
        .star-1:after {
          height: 100%;
          width: 100%;
          -webkit-transform: rotate(90deg);
                  transform: rotate(90deg);
          content: "";
          position: absolute;
          background-color: #fff;
          border-radius: 50%;
        }
        .star-1:before {
          background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 60%, rgba(255, 255, 255, 0) 100%);
          position: absolute;
          border-radius: 50%;
          content: "";
          top: -20%;
          left: -50%;
        }
        
        .star-1:nth-of-type(1) {
          top: 78vh;
          left: 44vw;
          width: 9px;
          height: 3px;
          -webkit-animation-delay: 4s;
                  animation-delay: 4s;
        }
        .star-1:nth-of-type(1):before {
          width: 18px;
          height: 18px;
          top: -250%;
        }
        
        .star-1:nth-of-type(2) {
          top: 94vh;
          left: 67vw;
          width: 6px;
          height: 2px;
          -webkit-animation-delay: 3s;
                  animation-delay: 3s;
        }
        .star-1:nth-of-type(2):before {
          width: 12px;
          height: 12px;
          top: -250%;
        }
        
        .star-1:nth-of-type(3) {
          top: 41vh;
          left: 66vw;
          width: 6px;
          height: 2px;
          -webkit-animation-delay: 1s;
                  animation-delay: 1s;
        }
        .star-1:nth-of-type(3):before {
          width: 12px;
          height: 12px;
          top: -250%;
        }
        
        .star-1:nth-of-type(4) {
          top: 72vh;
          left: 77vw;
          width: 9px;
          height: 3px;
          -webkit-animation-delay: 3s;
                  animation-delay: 3s;
        }
        .star-1:nth-of-type(4):before {
          width: 18px;
          height: 18px;
          top: -250%;
        }
        
        .star-1:nth-of-type(5) {
          top: 14vh;
          left: 68vw;
          width: 9px;
          height: 3px;
          -webkit-animation-delay: 4s;
                  animation-delay: 4s;
        }
        .star-1:nth-of-type(5):before {
          width: 18px;
          height: 18px;
          top: -250%;
        }
        
        .star-1:nth-of-type(6) {
          top: 26vh;
          left: 79vw;
          width: 6px;
          height: 2px;
          -webkit-animation-delay: 4s;
                  animation-delay: 4s;
        }
        .star-1:nth-of-type(6):before {
          width: 12px;
          height: 12px;
          top: -250%;
        }
        
        .star-1:nth-of-type(7) {
          top: 28vh;
          left: 84vw;
          width: 9px;
          height: 3px;
          -webkit-animation-delay: 1s;
                  animation-delay: 1s;
        }
        .star-1:nth-of-type(7):before {
          width: 18px;
          height: 18px;
          top: -250%;
        }
        
        .star-1:nth-of-type(8) {
          top: 42vh;
          left: 28vw;
          width: 4px;
          height: 1.3333333333px;
          -webkit-animation-delay: 3s;
                  animation-delay: 3s;
        }
        .star-1:nth-of-type(8):before {
          width: 8px;
          height: 8px;
          top: -250%;
        }
        
        .star-1:nth-of-type(9) {
          top: 7vh;
          left: 99vw;
          width: 7px;
          height: 2.3333333333px;
          -webkit-animation-delay: 1s;
                  animation-delay: 1s;
        }
        .star-1:nth-of-type(9):before {
          width: 14px;
          height: 14px;
          top: -250%;
        }
        
        .star-1:nth-of-type(10) {
          top: 97vh;
          left: 76vw;
          width: 4px;
          height: 1.3333333333px;
          -webkit-animation-delay: 2s;
                  animation-delay: 2s;
        }
        .star-1:nth-of-type(10):before {
          width: 8px;
          height: 8px;
          top: -250%;
        }
        
        .star-1:nth-of-type(11) {
          top: 76vh;
          left: 89vw;
          width: 9px;
          height: 3px;
          -webkit-animation-delay: 4s;
                  animation-delay: 4s;
        }
        .star-1:nth-of-type(11):before {
          width: 18px;
          height: 18px;
          top: -250%;
        }
        
        .star-1:nth-of-type(12) {
          top: 16vh;
          left: 92vw;
          width: 8px;
          height: 2.6666666667px;
          -webkit-animation-delay: 1s;
                  animation-delay: 1s;
        }
        .star-1:nth-of-type(12):before {
          width: 16px;
          height: 16px;
          top: -250%;
        }
        
        .star-1:nth-of-type(13) {
          top: 78vh;
          left: 33vw;
          width: 6px;
          height: 2px;
          -webkit-animation-delay: 4s;
                  animation-delay: 4s;
        }
        .star-1:nth-of-type(13):before {
          width: 12px;
          height: 12px;
          top: -250%;
        }
        
        .star-1:nth-of-type(14) {
          top: 12vh;
          left: 67vw;
          width: 7px;
          height: 2.3333333333px;
          -webkit-animation-delay: 5s;
                  animation-delay: 5s;
        }
        .star-1:nth-of-type(14):before {
          width: 14px;
          height: 14px;
          top: -250%;
        }
        
        .star-1:nth-of-type(15) {
          top: 64vh;
          left: 51vw;
          width: 4px;
          height: 1.3333333333px;
          -webkit-animation-delay: 4s;
                  animation-delay: 4s;
        }
        .star-1:nth-of-type(15):before {
          width: 8px;
          height: 8px;
          top: -250%;
        }
        
        .star-1:nth-of-type(16) {
          top: 71vh;
          left: 95vw;
          width: 4px;
          height: 1.3333333333px;
          -webkit-animation-delay: 4s;
                  animation-delay: 4s;
        }
        .star-1:nth-of-type(16):before {
          width: 8px;
          height: 8px;
          top: -250%;
        }
        
        .star-1:nth-of-type(17) {
          top: 56vh;
          left: 31vw;
          width: 7px;
          height: 2.3333333333px;
          -webkit-animation-delay: 2s;
                  animation-delay: 2s;
        }
        .star-1:nth-of-type(17):before {
          width: 14px;
          height: 14px;
          top: -250%;
        }
        
        .star-1:nth-of-type(18) {
          top: 33vh;
          left: 80vw;
          width: 6px;
          height: 2px;
          -webkit-animation-delay: 5s;
                  animation-delay: 5s;
        }
        .star-1:nth-of-type(18):before {
          width: 12px;
          height: 12px;
          top: -250%;
        }
        
        .star-1:nth-of-type(19) {
          top: 30vh;
          left: 14vw;
          width: 8px;
          height: 2.6666666667px;
          -webkit-animation-delay: 5s;
                  animation-delay: 5s;
        }
        .star-1:nth-of-type(19):before {
          width: 16px;
          height: 16px;
          top: -250%;
        }
        
        .star-1:nth-of-type(20) {
          top: 53vh;
          left: 43vw;
          width: 6px;
          height: 2px;
          -webkit-animation-delay: 3s;
                  animation-delay: 3s;
        }
        .star-1:nth-of-type(20):before {
          width: 12px;
          height: 12px;
          top: -250%;
        }
        
        .star-1:nth-of-type(21) {
          top: 32vh;
          left: 9vw;
          width: 7px;
          height: 2.3333333333px;
          -webkit-animation-delay: 2s;
                  animation-delay: 2s;
        }
        .star-1:nth-of-type(21):before {
          width: 14px;
          height: 14px;
          top: -250%;
        }
        
        .star-1:nth-of-type(22) {
          top: 97vh;
          left: 9vw;
          width: 5px;
          height: 1.6666666667px;
          -webkit-animation-delay: 2s;
                  animation-delay: 2s;
        }
        .star-1:nth-of-type(22):before {
          width: 10px;
          height: 10px;
          top: -250%;
        }
        
        .star-1:nth-of-type(23) {
          top: 62vh;
          left: 6vw;
          width: 5px;
          height: 1.6666666667px;
          -webkit-animation-delay: 4s;
                  animation-delay: 4s;
        }
        .star-1:nth-of-type(23):before {
          width: 10px;
          height: 10px;
          top: -250%;
        }
        
        .star-1:nth-of-type(24) {
          top: 57vh;
          left: 13vw;
          width: 9px;
          height: 3px;
          -webkit-animation-delay: 3s;
                  animation-delay: 3s;
        }
        .star-1:nth-of-type(24):before {
          width: 18px;
          height: 18px;
          top: -250%;
        }
        
        .star-1:nth-of-type(25) {
          top: 52vh;
          left: 60vw;
          width: 4px;
          height: 1.3333333333px;
          -webkit-animation-delay: 5s;
                  animation-delay: 5s;
        }
        .star-1:nth-of-type(25):before {
          width: 8px;
          height: 8px;
          top: -250%;
        }
        
        .star-1:nth-of-type(26) {
          top: 5vh;
          left: 84vw;
          width: 5px;
          height: 1.6666666667px;
          -webkit-animation-delay: 1s;
                  animation-delay: 1s;
        }
        .star-1:nth-of-type(26):before {
          width: 10px;
          height: 10px;
          top: -250%;
        }
        
        .star-1:nth-of-type(27) {
          top: 26vh;
          left: 23vw;
          width: 8px;
          height: 2.6666666667px;
          -webkit-animation-delay: 5s;
                  animation-delay: 5s;
        }
        .star-1:nth-of-type(27):before {
          width: 16px;
          height: 16px;
          top: -250%;
        }
        
        .star-1:nth-of-type(28) {
          top: 34vh;
          left: 3vw;
          width: 4px;
          height: 1.3333333333px;
          -webkit-animation-delay: 4s;
                  animation-delay: 4s;
        }
        .star-1:nth-of-type(28):before {
          width: 8px;
          height: 8px;
          top: -250%;
        }
        
        .star-1:nth-of-type(29) {
          top: 40vh;
          left: 58vw;
          width: 6px;
          height: 2px;
          -webkit-animation-delay: 4s;
                  animation-delay: 4s;
        }
        .star-1:nth-of-type(29):before {
          width: 12px;
          height: 12px;
          top: -250%;
        }
        
        .star-1:nth-of-type(30) {
          top: 17vh;
          left: 55vw;
          width: 5px;
          height: 1.6666666667px;
          -webkit-animation-delay: 5s;
                  animation-delay: 5s;
        }
        .star-1:nth-of-type(30):before {
          width: 10px;
          height: 10px;
          top: -250%;
        }
        
        .star-2 {
          position: absolute;
          border-radius: 50%;
          background-color: #ffffff;
          -webkit-animation: twinkle 5s infinite ease-in-out;
                  animation: twinkle 5s infinite ease-in-out;
        }
        
        .star-2:nth-of-type(31) {
          top: 70vh;
          left: 96vw;
          width: 2px;
          height: 2px;
          -webkit-animation-delay: 2s;
                  animation-delay: 2s;
        }
        .star-2:nth-of-type(31):before {
          width: 4px;
          height: 4px;
          top: -250%;
        }
        
        .star-2:nth-of-type(32) {
          top: 88vh;
          left: 57vw;
          width: 3px;
          height: 3px;
          -webkit-animation-delay: 4s;
                  animation-delay: 4s;
        }
        .star-2:nth-of-type(32):before {
          width: 6px;
          height: 6px;
          top: -250%;
        }
        
        .star-2:nth-of-type(33) {
          top: 59vh;
          left: 48vw;
          width: 3px;
          height: 3px;
          -webkit-animation-delay: 2s;
                  animation-delay: 2s;
        }
        .star-2:nth-of-type(33):before {
          width: 6px;
          height: 6px;
          top: -250%;
        }
        
        .star-2:nth-of-type(34) {
          top: 2vh;
          left: 83vw;
          width: 2px;
          height: 2px;
          -webkit-animation-delay: 2s;
                  animation-delay: 2s;
        }
        .star-2:nth-of-type(34):before {
          width: 4px;
          height: 4px;
          top: -250%;
        }
        
        .star-2:nth-of-type(35) {
          top: 8vh;
          left: 75vw;
          width: 4px;
          height: 4px;
          -webkit-animation-delay: 3s;
                  animation-delay: 3s;
        }
        .star-2:nth-of-type(35):before {
          width: 8px;
          height: 8px;
          top: -250%;
        }
        
        .star-2:nth-of-type(36) {
          top: 78vh;
          left: 8vw;
          width: 3px;
          height: 3px;
          -webkit-animation-delay: 1s;
                  animation-delay: 1s;
        }
        .star-2:nth-of-type(36):before {
          width: 6px;
          height: 6px;
          top: -250%;
        }
        
        .star-2:nth-of-type(37) {
          top: 72vh;
          left: 98vw;
          width: 2px;
          height: 2px;
          -webkit-animation-delay: 2s;
                  animation-delay: 2s;
        }
        .star-2:nth-of-type(37):before {
          width: 4px;
          height: 4px;
          top: -250%;
        }
        
        .star-2:nth-of-type(38) {
          top: 34vh;
          left: 41vw;
          width: 3px;
          height: 3px;
          -webkit-animation-delay: 5s;
                  animation-delay: 5s;
        }
        .star-2:nth-of-type(38):before {
          width: 6px;
          height: 6px;
          top: -250%;
        }
        
        .star-2:nth-of-type(39) {
          top: 13vh;
          left: 5vw;
          width: 4px;
          height: 4px;
          -webkit-animation-delay: 2s;
                  animation-delay: 2s;
        }
        .star-2:nth-of-type(39):before {
          width: 8px;
          height: 8px;
          top: -250%;
        }
        
        .star-2:nth-of-type(40) {
          top: 5vh;
          left: 86vw;
          width: 2px;
          height: 2px;
          -webkit-animation-delay: 4s;
                  animation-delay: 4s;
        }
        .star-2:nth-of-type(40):before {
          width: 4px;
          height: 4px;
          top: -250%;
        }
        
        .star-2:nth-of-type(41) {
          top: 7vh;
          left: 62vw;
          width: 3px;
          height: 3px;
          -webkit-animation-delay: 2s;
                  animation-delay: 2s;
        }
        .star-2:nth-of-type(41):before {
          width: 6px;
          height: 6px;
          top: -250%;
        }
        
        .star-2:nth-of-type(42) {
          top: 36vh;
          left: 44vw;
          width: 2px;
          height: 2px;
          -webkit-animation-delay: 2s;
                  animation-delay: 2s;
        }
        .star-2:nth-of-type(42):before {
          width: 4px;
          height: 4px;
          top: -250%;
        }
        
        .star-2:nth-of-type(43) {
          top: 74vh;
          left: 47vw;
          width: 3px;
          height: 3px;
          -webkit-animation-delay: 1s;
                  animation-delay: 1s;
        }
        .star-2:nth-of-type(43):before {
          width: 6px;
          height: 6px;
          top: -250%;
        }
        
        .star-2:nth-of-type(44) {
          top: 72vh;
          left: 86vw;
          width: 2px;
          height: 2px;
          -webkit-animation-delay: 4s;
                  animation-delay: 4s;
        }
        .star-2:nth-of-type(44):before {
          width: 4px;
          height: 4px;
          top: -250%;
        }
        
        .star-2:nth-of-type(45) {
          top: 26vh;
          left: 40vw;
          width: 4px;
          height: 4px;
          -webkit-animation-delay: 2s;
                  animation-delay: 2s;
        }
        .star-2:nth-of-type(45):before {
          width: 8px;
          height: 8px;
          top: -250%;
        }
        
        .star-2:nth-of-type(46) {
          top: 41vh;
          left: 39vw;
          width: 3px;
          height: 3px;
          -webkit-animation-delay: 2s;
                  animation-delay: 2s;
        }
        .star-2:nth-of-type(46):before {
          width: 6px;
          height: 6px;
          top: -250%;
        }
        
        .star-2:nth-of-type(47) {
          top: 16vh;
          left: 36vw;
          width: 4px;
          height: 4px;
          -webkit-animation-delay: 4s;
                  animation-delay: 4s;
        }
        .star-2:nth-of-type(47):before {
          width: 8px;
          height: 8px;
          top: -250%;
        }
        
        .star-2:nth-of-type(48) {
          top: 96vh;
          left: 37vw;
          width: 4px;
          height: 4px;
          -webkit-animation-delay: 3s;
                  animation-delay: 3s;
        }
        .star-2:nth-of-type(48):before {
          width: 8px;
          height: 8px;
          top: -250%;
        }
        
        .star-2:nth-of-type(49) {
          top: 18vh;
          left: 8vw;
          width: 4px;
          height: 4px;
          -webkit-animation-delay: 1s;
                  animation-delay: 1s;
        }
        .star-2:nth-of-type(49):before {
          width: 8px;
          height: 8px;
          top: -250%;
        }
        
        .star-2:nth-of-type(50) {
          top: 56vh;
          left: 31vw;
          width: 4px;
          height: 4px;
          -webkit-animation-delay: 4s;
                  animation-delay: 4s;
        }
        .star-2:nth-of-type(50):before {
          width: 8px;
          height: 8px;
          top: -250%;
        }
        
        .star-2:nth-of-type(51) {
          top: 24vh;
          left: 69vw;
          width: 3px;
          height: 3px;
          -webkit-animation-delay: 3s;
                  animation-delay: 3s;
        }
        .star-2:nth-of-type(51):before {
          width: 6px;
          height: 6px;
          top: -250%;
        }
        
        .star-2:nth-of-type(52) {
          top: 52vh;
          left: 17vw;
          width: 3px;
          height: 3px;
          -webkit-animation-delay: 3s;
                  animation-delay: 3s;
        }
        .star-2:nth-of-type(52):before {
          width: 6px;
          height: 6px;
          top: -250%;
        }
        
        .star-2:nth-of-type(53) {
          top: 35vh;
          left: 59vw;
          width: 2px;
          height: 2px;
          -webkit-animation-delay: 3s;
                  animation-delay: 3s;
        }
        .star-2:nth-of-type(53):before {
          width: 4px;
          height: 4px;
          top: -250%;
        }
        
        .star-2:nth-of-type(54) {
          top: 46vh;
          left: 73vw;
          width: 4px;
          height: 4px;
          -webkit-animation-delay: 2s;
                  animation-delay: 2s;
        }
        .star-2:nth-of-type(54):before {
          width: 8px;
          height: 8px;
          top: -250%;
        }
        
        .star-2:nth-of-type(55) {
          top: 38vh;
          left: 35vw;
          width: 4px;
          height: 4px;
          -webkit-animation-delay: 1s;
                  animation-delay: 1s;
        }
        .star-2:nth-of-type(55):before {
          width: 8px;
          height: 8px;
          top: -250%;
        }
        
        .star-2:nth-of-type(56) {
          top: 34vh;
          left: 66vw;
          width: 3px;
          height: 3px;
          -webkit-animation-delay: 2s;
                  animation-delay: 2s;
        }
        .star-2:nth-of-type(56):before {
          width: 6px;
          height: 6px;
          top: -250%;
        }
        
        .star-2:nth-of-type(57) {
          top: 80vh;
          left: 76vw;
          width: 3px;
          height: 3px;
          -webkit-animation-delay: 5s;
                  animation-delay: 5s;
        }
        .star-2:nth-of-type(57):before {
          width: 6px;
          height: 6px;
          top: -250%;
        }
        
        .star-2:nth-of-type(58) {
          top: 45vh;
          left: 49vw;
          width: 2px;
          height: 2px;
          -webkit-animation-delay: 3s;
                  animation-delay: 3s;
        }
        .star-2:nth-of-type(58):before {
          width: 4px;
          height: 4px;
          top: -250%;
        }
        
        .star-2:nth-of-type(59) {
          top: 8vh;
          left: 4vw;
          width: 4px;
          height: 4px;
          -webkit-animation-delay: 1s;
                  animation-delay: 1s;
        }
        .star-2:nth-of-type(59):before {
          width: 8px;
          height: 8px;
          top: -250%;
        }
        
        .star-2:nth-of-type(60) {
          top: 71vh;
          left: 93vw;
          width: 2px;
          height: 2px;
          -webkit-animation-delay: 3s;
                  animation-delay: 3s;
        }
        .star-2:nth-of-type(60):before {
          width: 4px;
          height: 4px;
          top: -250%;
        }
        
        .container-title {
          width: 600px;
          height: 450px;
          left: 50%;
          top: 50%;
          -webkit-transform: translate(-50%, -50%);
                  transform: translate(-50%, -50%);
          position: absolute;
          color: white;
          line-height: 1;
          font-weight: 700;
          text-align: center;
          justify-content: center;
          align-items: center;
          flex-direction: column;
          display: flex;
        }
        
        .title > * {
          display: inline-block;
          font-size: 200px;
        }
        
        .number {
          text-shadow: 20px 20px 20px rgba(0, 0, 0, 0.2);
          padding: 0 0.2em;
          font-family: 'Russo One', sans-serif;
        }
        
        .subtitle {
          font-size: 25px;
          margin-top: 1.5em;
          font-family: "Lato", sans-serif;
          text-shadow: 4px 4px 4px rgba(0, 0, 0, 0.2);
        }
        
        button {
          font-size: 22px;
          margin-top: 1.5em;
          padding: 0.5em 1em;
          letter-spacing: 1px;
          font-family: "Lato", sans-serif;
          color: white;
          background-color: transparent;
          border: 0;
          cursor: pointer;
          z-index: 999;
          border: 2px solid white;
          border-radius: 5px;
          text-shadow: 4px 4px 4px rgba(0, 0, 0, 0.2);
          transition: opacity 0.2s ease;
        }
        button:hover {
          opacity: 0.7;
        }
        button:focus {
          outline: 0;
        }
        
        .moon {
          position: relative;
          border-radius: 50%;
          width: 160px;
          height: 160px;
          z-index: 2;
          background-color: #fff;
          box-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #fff, 0 0 40px #fff, 0 0 70px #fff, 0 0 80px #fff, 0 0 100px #ff1177;
          -webkit-animation: rotate 5s ease-in-out infinite;
                  animation: rotate 5s ease-in-out infinite;
        }
        .moon .face {
          top: 60%;
          left: 47%;
          position: absolute;
        }
        .moon .face .mouth {
          border-top-left-radius: 50%;
          border-bottom-right-radius: 50%;
          border-top-right-radius: 50%;
          background-color: #5c3191;
          width: 25px;
          height: 25px;
          position: absolute;
          .........完整代码请登录后点击上方下载按钮下载查看

网友评论0