js+svg实现高科技登录登录表单页面代码
代码语言:html
所属分类:表单美化
代码描述:js+svg实现高科技登录登录表单页面代码
代码标签: js svg 高科技 登录 登录 表单 页面 代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <link href="https://fonts.googleapis.com/css?family=Tomorrow:400,500,600&display=swap" rel="stylesheet" /> <style> * { box-sizing: border-box; } html, body, input { font-family: "Tomorrow"; font-weight: 500; height: 100%; } body { display: flex; align-items: center; justify-content: center; font-size: 13.5px !important; color: #B3B5D2; background: #0F1020; } h1 { font-size: 24px; flex-grow: 1; flex-shrink: 1; display: flex; width: 100%; padding: 0px 0 56px 0; } .container { width: 300px; margin: auto; display: flex; flex-direction: column; align-items: flex-end; margin-top: 70px; } .editor-field { width: 300px; height: 64px; position: relative; margin: 14px 0; } .editor-field .noise__el { fill: #70719C; } .editor-field__noise { position: absolute; bottom: -2px; width: 100%; height: calc(100% + 2px); z-index: 2; pointer-events: none; } .editor-field__container { clip-path: polygon(0% 0%, calc(100% - 8px) 0, 100% 8px, 100% 100%, 95% 100%, calc(0% + 8px) 100%, 0% calc(100% - 8px), 0% calc(100% + 8px)); border: 2px solid #5E5F84; width: 100%; height: 48px; position: absolute; bottom: 2px; } .editor-field__container:before, .editor-field__container:after { content: ""; height: 2px; width: 11.5px; background: #5E5F84; display: block; position: absolute; z-index: 1; -webkit-transform: rotate(45deg); transform: rotate(45deg); border-radius: 5px; } .editor-field__container:before { right: -3.1px; top: 1.6px; } .editor-field__container:after { left: -3.1px; bottom: 1.6px; } .editor-field__bottom { position: absolute; content: ""; display: block; height: 2px; width: 30%; background: #5E5F84; right: 0px; clip-path: polygon(0 0, 100% 0%, 100% 100%, calc(0% + 2px) 100%); bottom: 0px; } .editor-field__label-container { position: absolute; top: 0px; } .editor-field__label-container:after { position: absolute; content: ""; display: block; height: 2px; width: 32px; background: #5E5F84; right: -29px; -webkit-clip-path: polygon(0 0, calc(100% - 2px) 0%, 100% 100%, 22% 100%); clip-path: polygon(0 0, calc(100% - 2px) 0%, 100% 100%, 0% 100%); bottom.........完整代码请登录后点击上方下载按钮下载查看
网友评论0