svg简洁登录注册UI交互效果代码

代码语言:html

所属分类:布局界面

代码描述:svg简洁登录注册UI交互效果代码

代码标签: svg 登录 注册

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

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">


    <link href="https://fonts.googleapis.com/css?family=PT+Sans:400,700" rel="stylesheet">



    <style>
        *, :before, :after {
          box-sizing: inherit;
          margin: 0;
          padding: 0;
        }
        
        html, body {
          min-height: 100vh;
          box-sizing: border-box;
        }
        
        body {
          display: flex;
          align-items: center;
          justify-content: space-around;
          background-image: linear-gradient(to top right, #b2e 30%, #4cf 110%);
          color: #fff;
          font-family: "PT Sans", sans-serif;
        }
        
        .phone {
          width: 340px;
          height: 580px;
          position: relative;
          overflow: hidden;
          padding: 1px;
        }
        .phone-header {
          position: absolute;
          top: 2px;
          width: 100%;
          z-index: 10;
          display: flex;
          justify-content: space-between;
          align-items: center;
          font-size: 14px;
        }
        .phone-header__signal, .phone-header__battery {
          width: 60px;
          height: 20px;
          fill: #fff;
        }
        .phone-header__battery rect {
          stroke: #fff;
        }
        .phone-logo {
          position: absolute;
          top: 35px;
          width: 100%;
          text-align: center;
          font-size: 30px;
          font-weight: bold;
          letter-spacing: 3px;
        }
        
        .desktop {
          height: 100%;
          background: url();
          background-size: cover;
        }
        .desktop-side {
          display: flex;
          flex-direction: column;
          position: absolute;
          bottom: 100px;
          right: 1px;
          padding-right: 10px;
          overflow: hidden;
        }
        .desktop-side .lnr {
          background-color: #333;
          border-radius: 40%;
          transform: translateX(50px);
          transition: 0.4s;
        }
        .desktop-side .lnr:not(:last-child) {
          margin-bottom: 20px;
        }
        .desktop-side .lnr.visible {
          transform: translateX(0);
        }
        .desktop-side .lnr.visible:nth-child(1) {
          transition-delay: 0.95s;
        }
        .desktop-side .lnr.visible:nth-child(2) {
          transition-delay: 0.9s;
        }
        .desktop-side .lnr.visible:nth-child(3) {
          transition-delay: 0.85s;
        }
        .desktop-side .lnr.visible:nth-child(4) {
          transition-delay: 0.8s;
        }
        .desktop-footer {
          display: flex;
          justify-content: space-around;
          position: absolute;
          width: 100%;
          bottom: 1px;
          padding-bottom: 10px;
          overflow: hidden;
        }
        .desktop-footer .lnr {
          transform: translateY(50px);
          transition-duration: 0.4s;
        }
        .desktop-footer .lnr.visible {
          transform: translateY(0);
        }
        .desktop-footer .lnr.visible:nth-child(1) {
          transition-delay: 0.55s;
        }
        .desktop-footer .lnr.visible:nth-child(2) {
          transition-delay: 0.6s;
        }
        .desktop-footer .lnr.visible:nth-child(3) {
          transition-delay: 0.65s;
        }
        .desktop-footer .lnr.visible:nth-child(4) {
          transition-delay: 0.7s;
        }
        
        .lnr {
          width: 35px;
          height: 35px;
          fill: #fff;
          padding: 4px;
          cursor: pointer;
        }
        
        .sign-in--full, .sign-in, .sign.........完整代码请登录后点击上方下载按钮下载查看

网友评论0