登录注册页面效果

代码语言:html

所属分类:表单美化

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

<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="utf-8">
    <title>注册页面</title>
    <style>
        * {
            box-sizing: border-box;
        }

        html,
        body {
            margin: 0;
            padding: 0;
            height: 100%;
        }

        body {
            font-family: 'Lato', sans-serif;
            display: -webkit-box;
            display: -webkit-flex;
            display: -ms-flexbox;
            display: flex;
            -webkit-box-pack: center;
            -webkit-justify-content: center;
            -ms-flex-pack: center;
            justify-content: center;
            -webkit-box-align: center;
            -webkit-align-items: center;
            -ms-flex-align: center;
            align-items: center;
            background: linear-gradient(243.87deg, #F28FE5 30.6%, #371933 130.6%);
            overflow: hidden;
        }

        input {
            font-family: inherit;
            -webkit-appearance: none;
            -moz-appearance: none;
            border: 0;
            border-bottom: 1px solid #AAAAAA;
            font-size: 16px;
            color: #000;
            border-radius: 0;
        }

        input[type="text"],
        input[type="password"] {
            width: 100%;
            height: 40px;
        }

        button,
        input:focus {
            outline: 0;
        }

        ::-webkit-input-placeholder {
            font-size: 16px;
            font-weight: 300;
            letter-spacing: -0.00933333em;
        }

        .form-group {
            position: relative;
            padding-top: 15px;
            margin-top: 10px;
        }

        label {
            position: absolute;
            top: 0;
            opacity: 1;
            -webkit-transform: translateY(5px);
            transform: translateY(5px);
            color: #aaa;
            font-weight: 300;
            font-size: 13px;
            letter-spacing: -0.00933333em;
            transition: all 0.2s ease-out;
        }

        input:placeholder-shown+label {
            opacity: 0;
            -webkit-transform: translateY(15px);
            transform: translateY(15px);
        }

        .h1 {
            color: #fff;
            opacity: 0.8;
            font-size: 20px;
            font-weight: 400;
            text-transform: uppercase;
            letter-spacing: 0.2405em;
            transition: all 770ms cubic-bezier(0.51, 0.04, 0.12, 0.99);
            text-align: center;
            cursor: pointer;
            position: absolute;
        }

        .bfwcont .h1 {
            -webkit-transform: translateX(200px) translateZ(0);
            transform: translateX(200px) translateZ(0);
        }

        .h2 {
            color: #000;
            font-size: 20px;
            letter-spacing: -0.00933333em;
            font-weight: 600;
            padding-bottom: 15px;
        }

        .login-wrapper {
            width: 800px;
            height: 440px;
            background-color: #fff;
            box-shadow: 0px 2px 50px rgba(0, 0, 0, 0.2);
            border-radius: 4px;
            overflow: hidden;
            position: relative;
        }

        .login-left {
            width: 100%;
            height: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            transition: all 770ms cubic-bezier(0.51, 0.04, 0.12, 0.99);
            overflow: hidden;
        }

        .login-left img {
            object-fit: cover;
            width: 100%;
            height: 100%;
            display: block;
            transition: all 770ms cubic-bezier(0.51, 0.04, 0.12, 0.99);
            object-position: left;
        }

        .bfwcont .login-left img {
            -webkit-transform: translateX(280px) translateZ(0);
            transform: translateX(280px) translateZ(0);
        }

        .bfwcont .login-left {
            -webkit-transform: translateX(-400px) translateZ(0);
            transform: translateX(-400px) translateZ(0);
        }

        .login-right {
            padding: 40px;
            position: absolute;
            top: 0;
            right: 0;
            width: 400px;
            -webkit-transform: translateX(400px) translateZ(0);
            transform: translateX(400px) translateZ(0);
            transition: all 770ms cubic-bezier(0.51, 0.04, 0.12, 0.99);
        }

        .bfwcont .login-right {
            -webkit-transform: translateX(0px) transla.........完整代码请登录后点击上方下载按钮下载查看

网友评论0