.night { position: absolute; z-index: -1; width: 100%; height: 100%; transform: rotateZ(45deg); } .shooting_star { position: absolute; left: 0%; top: 50%; height: 2px; background: linear-gradient(-45deg, #5f91ff, rgba(0, 0, 255, 0)); border-radius: 100%; filter: drop-shadow(0 0 6px #699bff); -webkit-animation: tail 6000ms ease-in-out infinite, shooting 6000ms ease-in-out infinite; animation: tail 6000ms ease-in-out infinite, shooting 6000ms ease-in-out infinite; } .shooting_star::before { content: ""; position: absolute; top: calc(50% - 1px); right: 0; height: 2px; background: linear-gradient(-45deg, rgba(0, 0, 255, 0), #5f91ff, rgba(0, 0, 255, 0)); transform: translateX(50%) rotateZ(45deg); border-radius: 100%; -webkit-animation: shining 3000ms ease-in-out infinite; animation: shining 3000ms ease-in-out infinite; } .shooting_star::after { content: ""; position: absolute; top: calc(50% - 1px); right: 0; height: 2px; background: linear-gradient(-45deg, rgba(0, 0, 255, 0), #5f91ff, rgba(0, 0, 255, 0)); transform: translateX(50%) rotateZ(45deg); border-radius: 100%; -webkit-animation: shining 3000ms ease-in-out infinite; animation: shining 3000ms ease-in-out infinite; transform: translateX(50%) rotateZ(-45deg); } .shooting_star:nth-child(1) { top: calc(20% - -20px); left: calc(20% + 200px); -webkit-animation-delay: 1000ms; animation-delay: 1000ms; } .shooting_star:nth-child(1)::before, .shooting_star:nth-child(1)::after { -webkit-animation-delay: 1000ms; animation-delay: 1000ms; } .shooting_star:nth-child(2) { top: calc(20% - -100px); left: calc(20% + 100px); -webkit-animation-delay: 2000ms; animation-delay: 2000ms; } .shooting_star:nth-child(2)::before, .shooting_star:nth-child(2)::after { -webkit-animation-delay: 2000ms; animation-delay: 2000ms; } .shooting_star:nth-child(3) { top: calc(50% - -30px); left: calc(0% + 250px); -webkit-animation-delay: 3000ms; animation-delay: 3000ms; } .shooting_star:nth-child(3)::before, .shooting_star:nth-child(3)::after { -webkit-animation-delay: 3000ms; animation-delay: 3000ms; } .shooting_star:nth-child(4) { top: calc(50% - -150px); left: calc(0% + 63px); -webkit-animation-delay: 4859ms; animation-delay: 4859ms; } .shooting_star:nth-child(4)::before, .shooting_star:nth-child(4)::after { -webkit-animation-delay: 4859ms; animation-delay: 4859ms; } .shooting_star:nth-child(5) { top: calc(50% - 21px); left: calc(0% + 154px); -webkit-animation-delay: 8735ms; animation-delay: 8735ms; } .shooting_star:nth-child(5)::before, .shooting_star:nth-child(5)::after { -webkit-animation-delay: 8735ms; animation-delay: 8735ms; } .shooting_star:nth-child(6) { top: calc(50% - -106px); left: calc(0% + 130px); -webkit-animation-delay: 2949ms; animation-delay: 2949ms; } .shooting_star:nth-child(6)::before, .shooting_star:nth-child(6)::after { -webkit-animation-delay: 2949ms; animation-delay: 2949ms; } .shooting_star:nth-child(7) { top: calc(50% - -90px); left: calc(0% + 95px); -webkit-animation-delay: 7816ms; animation-delay: 7816ms; } .shooting_star:nth-child(7)::before, .shooting_star:nth-child(7)::after { -webkit-animation-delay: 7816ms; animation-delay: 7816ms; } .shooting_star:nth-child(8) { top: calc(50% - 50px); left: calc(0% + 117px); -webkit-animation-delay: 3768ms; animation-delay: 3768ms; } .shooting_star:nth-child(8)::before, .shooting_star:nth-child(8)::after { -webkit-animation-delay: 3768ms; animation-delay: 3768ms; } .shooting_star:nth-child(9) { top: calc(50% - 190px); left: calc(0% + 158px); -webkit-animation-delay: 2620ms; animation-delay: 2620ms; } .shooting_star:nth-child(9)::before, .shooting_star:nth-child(9)::after { -webkit-animation-delay: 2620ms; animation-delay: 2620ms; } .shooting_star:nth-child(10) { top: calc(50% - 6px); left: calc(0% + 96px); -webkit-animation-delay: 1842ms; animation-delay: 1842ms; } .shooting_star:nth-child(10)::before, .shooting_star:nth-child(10)::after { -webkit-animation-delay: 1842ms; animation-delay: 1842ms; } .shooting_star:nth-child(11) { top: calc(50% - 129px); left: calc(0% + 133px); -webkit-animation-delay: 41ms; animation-delay: 41ms; } .shooting_star:nth-child(11)::before, .shooting_star:nth-child(11)::after { -webkit-animation-delay: 41ms; animation-delay: 41ms; } .shooting_star:nth-child(12) { top: calc(50% - 22px); left: calc(0% + 275px); -webkit-animation-delay: 4525ms; animation-delay: 4525ms; } .shooting_star:nth-child(12)::before, .shooting_star:nth-child(12)::after { -webkit-animation-delay: 4525ms; animation-delay: 4525ms; } .shooting_star:nth-child(13) { top: calc(50% - 143px); left: calc(0% + 219px); -webkit-animation-delay: 3600ms; animation-delay: 3600ms; } .shooting_star:nth-child(13)::before, .shooting_star:nth-child(13)::after { -webkit-animation-delay: 3600ms; animation-delay: 3600ms; } .shooting_star:nth-child(14) { top: calc(50% - -156px); left: calc(0% + 142px); -webkit-animation-delay: 6309ms; animation-delay: 6309ms; } .shooting_star:nth-child(14)::before, .shooting_star:nth-child(14)::after { -webkit-animation-delay: 6309ms; animation-delay: 6309ms; } .shooting_star:nth-child(15) { top: calc(50% - 100px); left: calc(0% + 145px); -webkit-animation-delay: 7858ms; animation-delay: 7858ms; } .shooting_star:nth-child(15)::before, .shooting_star:nth-child(15)::after { -webkit-animation-delay: 7858ms; animation-delay: 7858ms; } .shooting_star:nth-child(16) { top: calc(50% - 137px); left: calc(0% + 40px); -webkit-animation-delay: 2250ms; animation-delay: 2250ms; } .shooting_star:nth-child(16)::before, .shooting_star:nth-child(16)::after { -webkit-animation-delay: 2250ms; animation-delay: 2250ms; } .shooting_star:nth-child(17) { top: calc(50% - 75px); left: calc(0% + 107px); -webkit-animation-delay: 1351ms; animation-delay: 1351ms; } .shooting_star:nth-child(17)::before, .shooting_star:nth-child(17)::after { -webkit-animation-delay: 1351ms; animation-delay: 1351ms; } .shooting_star:nth-child(18) { top: calc(50% - -108px); left: calc(0% + 42px); -webkit-animation-delay: 482ms; animation-delay: 482ms; } .shooting_star:nth-child(18)::before, .shooting_star:nth-child(18)::after { -webkit-animation-delay: 482ms; animation-delay: 482ms; } .shooting_star:nth-child(19) { top: calc(50% - 156px); left: calc(0% + 159px); -webkit-animation-delay: 2341ms; animation-delay: 2341ms; } .shooting_star:nth-child(19)::before, .shooting_star:nth-child(19)::after { -webkit-animation-delay: 2341ms; animation-delay: 2341ms; } .shooting_star:nth-child(20) { top: calc(50% - 152px); left: calc(0% + 120px); -webkit-animation-delay: 4565ms; animation-delay: 4565ms; } .shooting_star:nth-child(20)::before, .shooting_star:nth-child(20)::after { -webkit-animation-delay: 4565ms; animation-delay: 4565ms; } @-webkit-keyframes tail { 0% { width: 0; } 30% { width: 100px; } 100% { width: 0; } } @keyframes tail { 0% { width: 0; } 30% { width: 100px; } 100% { width: 0; } } @-webkit-keyframes shining { 0% { width: 0; } 50% { width: 30px; } 100% { width: 0; } } @keyframes shining { 0% { width: 0; } 50% { width: 30px; } 100% { width: 0; } } @-webkit-keyframes shooting { 0% { transform: translateX(0); } 100% { transform: translateX(100vw); } } @keyframes shooting { 0% { transform: translateX(0); } 100% { transform: translateX(calc(100vw - 300px)); } } @-webkit-keyframes sky { 0% { transform: rotate(45deg); } 100% { transform: rotate(405deg); } } @keyframes sky { 0% { transform: rotate(45deg); } 100% { transform: rotate(405deg); } }