首页 > 其他分享 >流星雨背景注册页面展示

流星雨背景注册页面展示

时间:2022-10-25 23:13:37浏览次数:59  
标签:star 流星雨 delay nth animation 注册 child shooting 页面

body {     background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);     height: 100vh;     overflow: hidden;     display: flex;     font-family: "Anton", sans-serif;     justify-content: center;     align-items: center;   }     .night {     position: relative;     width: 100%;     height: 200%;     transform: rotateZ(139deg);   }     .shooting_star {     position: absolute;     left: 50%;     top: 50%;     height: 2px;     background: linear-gradient(-45deg, #5f91ff, rgba(0, 0, 255, 0));     border-radius: 999px;     filter: drop-shadow(0 0 6px #699bff);     -webkit-animation: tail 3000ms ease-in-out infinite, shooting 3000ms ease-in-out infinite;     animation: tail 3000ms ease-in-out infinite, shooting 3000ms ease-in-out infinite;   }     .shooting_star::before {     content: "";     position: absolute;     top: calc(50% - 1px * 2);     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 * 2);     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(50% - -4px * 2);     left: calc(50% - 248px);     -webkit-animation-delay: 3060ms;     animation-delay: 3060ms;   }     .shooting_star:nth-child(1)::before,   .shooting_star:nth-child(1)::after {     -webkit-animation-delay: 3060ms;     animation-delay: 3060ms;   }     .shooting_star:nth-child(2) {     top: calc(50% - 180px * 2);     left: calc(50% - 166px);     -webkit-animation-delay: 4693ms;     animation-delay: 4693ms;   }     .shooting_star:nth-child(2)::before,   .shooting_star:nth-child(2)::after {     -webkit-animation-delay: 4693ms;     animation-delay: 4693ms;   }     .shooting_star:nth-child(3) {     top: calc(50% - -88px * 2);     left: calc(50% - 136px);     -webkit-animation-delay: 1178ms;     animation-delay: 1178ms;   }     .shooting_star:nth-child(3)::before,   .shooting_star:nth-child(3)::after {     -webkit-animation-delay: 1178ms;     animation-delay: 1178ms;   }     .shooting_star:nth-child(4) {     top: calc(50% - 92px * 2);     left: calc(50% - 92px);     -webkit-animation-delay: 9285ms;     animation-delay: 9285ms;   }     .shooting_star:nth-child(4)::before,   .shooting_star:nth-child(4)::after {     -webkit-animation-delay: 9285ms;     animation-delay: 9285ms;   }     .shooting_star:nth-child(5) {     top: calc(50% - 89px * 2);     left: calc(50% - 92px);     -webkit-animation-delay: 5475ms;     animation-delay: 5475ms;   }     .shooting_star:nth-child(5)::before,   .shooting_star:nth-child(5)::after {     -webkit-animation-delay: 5475ms;     animation-delay: 5475ms;   }     .shooting_star:nth-child(6) {     top: calc(50% - -164px * 2);     left: calc(50% - 27px);     -webkit-animation-delay: 9220ms;     animation-delay: 9220ms;   }     .shooting_star:nth-child(6)::before,   .shooting_star:nth-child(6)::after {     -webkit-animation-delay: 9220ms;     animation-delay: 9220ms;   }     .shooting_star:nth-child(7) {     top: calc(50% - -136px * 2);     left: calc(50% - 243px);     -webkit-animation-delay: 7942ms;     animation-delay: 7942ms;   }     .shooting_star:nth-child(7)::before,   .shooting_star:nth-child(7)::after {     -webkit-animation-delay: 7942ms;     animation-delay: 7942ms;   }     .shooting_star:nth-child(8) {     top: calc(50% - 174px * 2);     left: calc(50% - 75px);     -webkit-animation-delay: 8312ms;     animation-delay: 8312ms;   }     .shooting_star:nth-child(8)::before,   .shooting_star:nth-child(8)::after {     -webkit-animation-delay: 8312ms;     animation-delay: 8312ms;   }     .shooting_star:nth-child(9) {     top: calc(50% - 138px * 2);     left: calc(50% - 281px);     -webkit-animation-delay: 6475ms;     animation-delay: 6475ms;   }     .shooting_star:nth-child(9)::before,   .shooting_star:nth-child(9)::after {     -webkit-animation-delay: 6475ms;     animation-delay: 6475ms;   }     .shooting_star:nth-child(10) {     top: calc(50% - 25px * 2);     left: calc(50% - 25px);     -webkit-animation-delay: 7118ms;     animation-delay: 7118ms;   }     .shooting_star:nth-child(10)::before,   .shooting_star:nth-child(10)::after {     -webkit-animation-delay: 7118ms;     animation-delay: 7118ms;   }     .shooting_star:nth-child(11) {     top: calc(50% - 184px * 2);     left: calc(50% - 198px);     -webkit-animation-delay: 8570ms;     animation-delay: 8570ms;   }     .shooting_star:nth-child(11)::before,   .shooting_star:nth-child(11)::after {     -webkit-animation-delay: 8570ms;     animation-delay: 8570ms;   }     .shooting_star:nth-child(12) {     top: calc(50% - -194px * 2);     left: calc(50% - 283px);     -webkit-animation-delay: 1026ms;     animation-delay: 1026ms;   }     .shooting_star:nth-child(12)::before,   .shooting_star:nth-child(12)::after {     -webkit-animation-delay: 1026ms;     animation-delay: 1026ms;   }     .shooting_star:nth-child(13) {     top: calc(50% - 169px * 2);     left: calc(50% - 42px);     -webkit-animation-delay: 4957ms;     animation-delay: 4957ms;   }     .shooting_star:nth-child(13)::before,   .shooting_star:nth-child(13)::after {     -webkit-animation-delay: 4957ms;     animation-delay: 4957ms;   }     .shooting_star:nth-child(14) {     top: calc(50% - -114px * 2);     left: calc(50% - 139px);     -webkit-animation-delay: 5748ms;     animation-delay: 5748ms;   }     .shooting_star:nth-child(14)::before,   .shooting_star:nth-child(14)::after {     -webkit-animation-delay: 5748ms;     animation-delay: 5748ms;   }     .shooting_star:nth-child(15) {     top: calc(50% - 140px * 2);     left: calc(50% - 283px);     -webkit-animation-delay: 2809ms;     animation-delay: 2809ms;   }     .shooting_star:nth-child(15)::before,   .shooting_star:nth-child(15)::after {     -webkit-animation-delay: 2809ms;     animation-delay: 2809ms;   }     .shooting_star:nth-child(16) {     top: calc(50% - 72px * 2);     left: calc(50% - 88px);     -webkit-animation-delay: 8661ms;     animation-delay: 8661ms;   }     .shooting_star:nth-child(16)::before,   .shooting_star:nth-child(16)::after {     -webkit-animation-delay: 8661ms;     animation-delay: 8661ms;   }     .shooting_star:nth-child(17) {     top: calc(50% - 40px * 2);     left: calc(50% - 273px);     -webkit-animation-delay: 8037ms;     animation-delay: 8037ms;   }     .shooting_star:nth-child(17)::before,   .shooting_star:nth-child(17)::after {     -webkit-animation-delay: 8037ms;     animation-delay: 8037ms;   }     .shooting_star:nth-child(18) {     top: calc(50% - 176px * 2);     left: calc(50% - 27px);     -webkit-animation-delay: 826ms;     animation-delay: 826ms;   }     .shooting_star:nth-child(18)::before,   .shooting_star:nth-child(18)::after {     -webkit-animation-delay: 826ms;     animation-delay: 826ms;   }     .shooting_star:nth-child(19) {     top: calc(50% - -164px * 2);     left: calc(50% - 229px);     -webkit-animation-delay: 1822ms;     animation-delay: 1822ms;   }     .shooting_star:nth-child(19)::before,   .shooting_star:nth-child(19)::after {     -webkit-animation-delay: 1822ms;     animation-delay: 1822ms;   }     .shooting_star:nth-child(20) {     top: calc(50% - 85px * 2);     left: calc(50% - 161px);     -webkit-animation-delay: 5305ms;     animation-delay: 5305ms;   }     .shooting_star:nth-child(20)::before,   .shooting_star:nth-child(20)::after {     -webkit-animation-delay: 5305ms;     animation-delay: 5305ms;   }     .shooting_star:nth-child(21) {     top: calc(50% - 100px * 2);     left: calc(50% - 300px);     -webkit-animation-delay: 4305ms;     animation-delay: 4305ms;   }     .shooting_star:nth-child(21)::before,   .shooting_star:nth-child(21)::after {     -webkit-animation-delay: 4305ms;     animation-delay: 4305ms;   }     @-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(300px);     }   }     @keyframes shooting {     0% {       transform: translateX(0);     }       100% {       transform: translateX(300px);     }   }     @-webkit-keyframes sky {     0% {       transform: rotate(45deg);     }       100% {       transform: rotate(405deg);     }   }     @keyframes sky {     0% {       transform: rotate(45deg);     }       100% {       transform: rotate(405deg);     }   }   .night{     position: absolute;     z-index: -1;   }       /* 登录板块 */   html {     height: 100%;   }         .login-box {     position: absolute;     top: 50%;     left: 50%;     width: 500px;     padding: 40px;     /* 登录框居中 */     transform: translate(-50%, -50%);     background: rgba(0, 0, 0, .8);     /* css3新特性,任何内外边距和边框都将在已设定的宽度和高度内进行绘制 */     box-sizing: border-box;     /* 添加阴影 */     box-shadow: 0 15px 25px rgba(0, 0, 0, .6);     /* 边框圆角 */     border-radius: 10px;   }     .login-box h2 {     margin: 0 0 30px;     padding: 0;     color: #fff;     text-align: center;   }     .login-box .user-box {     position: relative;   }     .login-box .user-box input {     width: 100%;     padding: 10px 0;     font-size: 16px;     color: #fff;     margin-bottom: 30px;     border: none;     border-bottom: 1px solid #fff;     outline: none;     background: transparent;   }     .login-box .user-box label {     position: absolute;     top: 0;     left: 0;     padding: 10px 0;     font-size: 16px;     color: #fff;     /* 元素不再是鼠标事件的目标,鼠标不再监听当前层而去监听下面的层中的元素 */     pointer-events: none;     transition: .5s;   }     .login-box .user-box input:focus~label,   .login-box .user-box input:valid~label {     top: -20px;     left: 0;     color: #03e9f4;     font-size: 12px;   }     /* .login-box form a {     position: relative;     display: inline-block;     padding: 10px 20px;     color: #2cacb1;     font-size: 16px;     text-decoration: none;     text-transform: uppercase;     overflow: hidden;     transition: .5s;     margin-top: 40px;     letter-spacing: 4px   } */   .login-box a:nth-of-type(1){     position: relative;     display: inline-block;     padding: 10px 20px;     color: #2cacb1;     font-size: 16px;     text-decoration: none;     text-transform: uppercase;     overflow: hidden;     transition: .5s;     margin-top: 40px;     letter-spacing: 4px   }     .login-box a:nth-of-type(2){     position: relative;     display: inline-block;     padding: 10px 20px;     color: #2cacb1;     font-size: 16px;     text-decoration: none;     text-transform: uppercase;     overflow: hidden;     transition: .5s;     margin-top: 40px;     margin-left: 240px;     letter-spacing: 4px   }   .button{     color: #03e9f4;     background-color: #090a0f;   }   .button:hover {     border: #03e9f4 1px solid;     background: #03e9f4;     color: #fff;     border-radius: 5px;     box-shadow: 0 0 20px #03e9f4;   }     /* 按钮特效 -Start */   .login-box a span {     position: absolute;     display: block;   }     .login-box a span:nth-child(1) {     top: 0;     left: -100%;     width: 100%;     height: 2px;     background: linear-gradient(90deg, transparent, #03e9f4);     animation: btn-anim1 1s linear infinite;   }     @keyframes btn-anim1 {     0% {         left: -100%;     }       50%,     100% {         left: 100%;     }   }     .login-box a span:nth-child(2) {     top: -100%;     right: 0;     width: 2px;     height: 100%;     background: linear-gradient(180deg, transparent, #03e9f4);     animation: btn-anim2 1s linear infinite;     animation-delay: .25s   }     @keyframes btn-anim2 {     0% {         top: -100%;     }       50%,     100% {         top: 100%;     }   }     .login-box a span:nth-child(3) {     bottom: 0;     right: -100%;     width: 100%;     height: 2px;     background: linear-gradient(270deg, transparent, #03e9f4);     animation: btn-anim3 1s linear infinite;     animation-delay: .5s   }     @keyframes btn-anim3 {     0% {         right: -100%;     }       50%,     100% {         right: 100%;     }   }     .login-box a span:nth-child(4) {     bottom: -100%;     left: 0;     width: 2px;     height: 100%;     background: linear-gradient(360deg, transparent, #03e9f4);     animation: btn-anim4 1s linear infinite;     animation-delay: .75s   }       @keyframes btn-anim4 {     0% {         bottom: -100%;     }       50%,     100% {         bottom: 100%;     }   }     /* 按钮特效End */

标签:star,流星雨,delay,nth,animation,注册,child,shooting,页面
From: https://www.cnblogs.com/ljlp/p/16826722.html

相关文章

  • android实现第一次打开应用的介绍页面
    效果图    添加依赖implementation'com.github.AppIntro:AppIntro:6.2.0'dependencyResolutionManagement{repositoriesMode.set(RepositoriesMo......
  • SpringBoot整合Freemarker实现页面静态化
    第一步:创建项目添加依赖:<!--web和actuator(图形监控用)基本上都是一起出现的--><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-......
  • VueRouter 实现登录后跳转到之前相要访问的页面的简单示例
    简介该功能主要用于判定用户权限,在用户无权限时重定向至登录页,并在用户完成登录后,再定向至用户之前想要访问的路由;或者用户在任意路由点击登录时,登录成功后返回当前路由。......
  • 1. 注册Aegisub插件
    1注册Register注:本系列不包括lua基础,您需要掌握基础的Aegisub模板编写能力以及掌握基础的Lua知识后进行学习1.1注册aegisub.register_macro(name,description,ma......
  • js禁止浏览器操作页面回退
    浏览器实现页面回退的三个步骤://1、在刚进入页面时在浏览器历史记录中加一条当前页面的记录window.addEventListener('popstate',this.popstateFun,false);//2、监听......
  • Win10仅修改部分文本大小|Win10注册表修改文字大小
    Win10在早期的版本中,可以在控制面板修改文本大小,不修改系统整体的缩放,但是在后期的版本更新中,取消了相关的功能。这篇文章是本站给大家带来的Win10注册表修改文字大小方法......
  • html2Canvas 前端保存页面为图片
    html2canvas 能够实现在用户浏览器端直接对整个或部分页面进行截屏。这个html2canvas脚本将当页面渲染成一个canvas图片,通过读取DOM并将不同的样式应用到这些元素上实现。......
  • Koa扩展之下载文件和访问HTML页面
    下载文件和访问HTML页面示例PS:在项目的根目录新增static文件夹,static文件夹中包含load.html页面和模板文件.xlsx。constkoa=require('koa');constRouter=require(......
  • 解决uniapp跳转页面传递特殊符号参数的时候出现问题
    1.普通传参uni.navigateTo({url:'/pages/login/prettyFilter?ruleName=AAA+*'})这时跳转过去的页面参数特殊字符不见了,如图:  2.使用encodeURIComponent进......
  • 关于一个web站点的欢迎页面
    关于一个web站点的欢迎页面什么是一个web站点的欢迎页面?对于一个webapp来说,我们是可以设置它的欢迎页面的。设置欢迎页面之后,当你访问这个webapp的时候,或者访问这......