栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Java

动态化 简易注册登录界面 HTML+CSS+JQ

Java 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

动态化 简易注册登录界面 HTML+CSS+JQ

登录注册界面截图

登录和注册转换,

登录注册按钮上下浮动,界面边框及背景有不同颜色以不同速度变化,

双击会进行登录注册的切换、单击会停止动画(代码在最下面)。

图片限制5M,所以不是很清楚

小弹框的实现:

    
        
            

还只是个demo,不能提交数据

× $(".btn button").click(function(){ document.querySelector(".main").classList.toggle('active'); }) function fun(){ document.querySelector(".main").classList.toggle('active'); }
界面主要用到的技术:

HTML CSS jQuery

css主要用到animate动画属性、伪元素 hover等等,用来实现当鼠标进入元素时,发生不同的变化,比如颜色的变浅变深等。

                

                

                 

                jQuery主要用到 css()方法进行页面动态渲染

        ​​​​​​​        

HTML部分代码:(如需要原码,请私信我,免费提供源码)

    
        
            
            
                登   录
                

忘记密码?

注   册

还只是个demo,不能提交数据

×
 css部分代码:(代码太长)
@keyframes movepoint1 {
  from {
    top: 90%;
  }
  to {
    top: 20%;
  }
}
@keyframes movepoint2 {
  from {
    top: 90%;
  }
  to {
    top: 20%;
  }
}
@keyframes borders {
  0% {
    background: #f368e0;
  }
  10% {
    background: #ff9f43;
  }
  20% {
    background: #ee5253;
  }
  30% {
    background: #0abde3;
  }
  40% {
    background: #10ac84;
  }
  50% {
    background: #01a3a4;
  }
  60% {
    background: #8c7ae6;
  }
  80% {
    background: #fda7df;
  }
  90% {
    background: linear-gradient(to top, #d9afd9 0%, #97d9e1 100%);
  }
  100% {
    background: linear-gradient(to top, #9795f0 0%, #fbc8d4 100%);
  }
}
* {
  margin: 0;
  padding: 0;
}
body {
  height: 100vh;
  background-image: linear-gradient(135deg, #C2FFD8 10%, #465EFB 100%);
}
.box {
  width: 660px;
  height: 540px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #f368e0;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 15px;
  box-shadow: 15px 15px 50px 20px rgba(0, 0, 0, 0.3);
}
.container {
  width: 650px;
  height: 530px;
  border-radius: 15px;
  display: flex;
  flex-direction: row;
  overflow: hidden;
}
.container .login {
  width: 70%;
  background-image: linear-gradient(135deg, #5EFCE8 10%, #736EFE 100%);
  padding: 70px;
  transition: all 1s;
}
.container .login h2 {
  display: inline-block;
  border-bottom: 3px solid #F9F871;
  margin-bottom: 30px;
  padding-bottom: 5px;
}
.container .login input {
  display: block;
  margin-bottom: 20px;
  margin-right: 0px;
  border: none;
  outline: none;
  width: 260px;
  height: 50px;
  font-size: 18px;
  padding-left: 10px;
  background-color: transparent;
  border-bottom: 2px solid white;
  color: #57606f;
}

最后我想说自己现在在大学主要学的是后端java、但是对前端有着浓厚的兴趣,如果代码有不合理的地方、或者有更加好的方法实现同样的功能,请指正。

有任何问题、请在评论区提出或者私信我。

(如需要原码,请私信我,免费提供源码)

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/756424.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号