css+jquery实现大气滑块登录注册表单效果代码
代码语言:html
所属分类:表单美化
代码描述:css+jquery实现大气滑块登录注册表单效果代码
代码标签: css jquery 大气 滑块 登录 注册 表单
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" rel="stylesheet"> <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/all.5.6.1.css"> <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/reset.min.css"> <style> body { font-family: "Roboto", sans-serif; } *, *::before, *::after { box-sizing: border-box; } .background { height: 100vh; width: 100%; background-image: url("//repo.bfw.wiki/bfwrepo/image/636d9d021f5a3.png"); background-size: cover; background-position: center; filter: blur(2px); } .container { width: 80%; height: 60vh; background-color: #32393e; color: #fefefe; display: flex; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); } .signup, .login { width: 50%; display: flex; flex-direction: column; justify-content: flex-start; padding: 80px 40px 40px 40px; transition: all 0.3s; } .signup { visibility: hidden; opacity: 0; transition-delay: 0s; } .signup.in { visibility: visible; opacity: 1; } .login { visibility: visible; opacity: 1; } .login.in { visibility: hidden; opacity: 0; transition-delay: 0s; } .heading-2 { font-size: 24px; font-weight: 300; margin-bottom: 20px; } .paragraph { font-size: 12px; margin-bottom: 20px; line-height: 1.414; } .btn { border: 1px solid #f0f0f0; background-color: transparent; color: #fff; text-transform: uppercase; padding: 10px 50px; cursor: pointer; outline: 0; align-self: flex-start; border-radius: 5px; } .form-container { background: #fff; position: absolute; top: 50%; left: calc(10% + 35px); transform: translatey(-50%); display: flex; height: 65vh; width: calc(40% - 40px); transition: all 0.5s cubic-bezier(0.17, 0.829, 0.32, 1.28); } .form-container.in { left: calc(50% + 5px); } .signup__form, .login__form { display: flex; flex-direction: column; justify-content: center; padding: 30px 50px; height: 65vh; width: 100%; position: absolute; top: 50%; transform: translatey(-50%); width: calc(40% - 40px); } .signup__form { left: calc(10% + 35px); transition: opacity 0.25s 0.25s; } .in.signup__form { visibility: hidden; opacity: 0; } .login__form { visibility: hidden; opacity: 0; left: calc(50% + 5px); } .in.login__form { visibility: visible; opacity: 1; transition: opacity 0.25s 0.25s; } .login__box { display: flex; flex-direction: row-reverse; align-items: center; justify-content: space-between; margin-top: 20px; } .heading-2--form { color: #3f9eff; font-weight: 400; text-transform: uppercase; margin-bottom: 50px; } .input { display: flex; font-size: 14px; } .input input { border: none; padding-bottom: 15px; margin-bottom: 20px; width: 100%; border-bottom: 1px solid #aaa; background: transparent; } .input input:focus { outline: 0; } .input input::-webkit-input-placeholder { color: #ccc; } .input .fas { margin-left: -20px; color: #ccc; } .btn-primary { background-color: #3f9eff; bord.........完整代码请登录后点击上方下载按钮下载查看
网友评论0