css实现滑动式登录注册表单效果代码

代码语言:html

所属分类:表单美化

代码描述:css实现滑动式登录注册表单效果代码

代码标签: css 滑动式 登录 注册 表单

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

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
<style>
    @import url("https://fonts.googleapis.com/css2?family=Patrick+Hand&display=swap");

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-1: #ee7344; /* Info Container */
  --color-2: #fcb900; /* Form */
  --color-3: #fff; /* Button */
  --color-4: #0575cc; /* Footer Link */
}

body {
  font-family: Montserrat, sans-serif;
}

.wrapper {
  max-width: 860px;
  min-width: 300px;
  margin: 0 auto;
}

footer {
  margin-top: 20px;
  font-size: 14px;
  padding: 10px 20px;
}

footer a {
  text-decoration: none;
  color: var(--color-4);
}

section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 80px);
  padding: 0 20px;
}

.row {
  display: flex;
  align-items: center;
  padding: 0 30px;
  width: 100%;
  height: 260px;
  background-color: var(--color-1);
  box-shadow: 6px 0 15px rgba(0, 0, 0, 0.4);
}

.col {
  flex: 1;
}

#col-1 {
  height: 140%;
  background-color: var(--color-2);
  box-shadow: 4px 0 10px rgba(0, 0, 0, 0.4);
  z-index: 10;
}

.form {
  padding: 30px;
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 30px;
  justify-content: center;
}

form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

form a {
  color: black;
}

input {
  background-color: var(--color-2);
  border: 2px solid black;
  border-radius: 3px;
  line-height: 2;
  padding: 4px 8px;
  font-weight: bold;
  font-size: 16px;
  box-shadow: 0.3rem 0.3rem #111827;
}

input:focus {
  outline: .........完整代码请登录后点击上方下载按钮下载查看

网友评论0