css折叠打开登录表单效果代码

代码语言:html

所属分类:表单美化

代码描述:css折叠打开登录表单效果代码

代码标签: css 登录 折叠

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

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">



    <link rel='stylesheet' href='https://fonts.googleapis.com/css?family=Roboto+Slab'>

    <style>
        * {
          margin: 0;
          padding: 0;
          box-sizing: border-box;
        }
        
        html, body {
          height: 100%;
          background-color: #F15A5C;
          font-family: "Roboto Slab", serif;
          color: white;
        }
        
        .preload * {
          transition: none !important;
        }
        
        label {
          display: block;
          font-weight: bold;
          font-size: small;
          text-transform: uppercase;
          font-size: 0.7em;
          margin-bottom: 0.35em;
        }
        
        input[type="text"], input[type="password"] {
          width: 100%;
          border: none;
          padding: 0.5em;
          border-radius: 2px;
          margin-bottom: 0.5em;
          color: #333;
        }
        input[type="text"]:focus, input[type="password"]:focus {
          outline: none;
          box-shadow: inset -1px -1px 3px rgba(0, 0, 0, 0.3);
        }
        
        button {
          padding-left: 1.5em;
          padding-right: 1.5em;
          padding-bottom: 0.5em;
          padding-top: 0.5em;
          border: none;
          border-radius: 2px;
          background-color: #7E5AF1;
          text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.25);
          color: white;
          box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.45);
        }
        
        small {
          font-size: 1em;
        }
        
        .login--login-submit {
          float: right;
        }
        
        .login--container {
          width: 600px;
          background-color: #F15A5C;
          margin: 0 auto;
          position: relative;
          top: 25%;
        }
        
        .login--toggle-container {
          position: absolute;
          background-color: #F15A5C;
          right: 0;
          line-height: 2.5em;
          width: 50%;
          height: 120px;
          text-align: right;
          cursor: pointer;
          transform: perspective(1000px) translateZ(1px);
          transform-origin: 0% 0%;
          transition: all 1s cubic-bezier(0.06, 0.63, 0, 1);
          backface-visibility: hidden;
        }
        .login--toggle-container .js-toggle-login {
          font-size: 4em;
          text-decoration: underline;
        }
        .login--active .login--toggle-container {
          transform: perspective(1000px) rotateY(180deg);
          background-color: .........完整代码请登录后点击上方下载按钮下载查看

网友评论0