与文字融为一体的checkbox切换选择效果

代码语言:html

所属分类:表单美化

代码描述:与文字融为一体的checkbox切换选择效果

代码标签: checkbox 切换 选择 效果

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


<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">

<link href="https://fonts.googleapis.com/css2?family=Raleway:wght@200&display=swap" rel="stylesheet">
<style>
*, *::after, *::before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
  outline: none;
  transition: 1s;
  -webkit-tap-highlight-color: transparent;
}

/* Generic */
body {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Raleway', sans-serif;
  text-transform: uppercase;
  color: #ffffff;
  background-color: #373737;
  overflow: hidden;
}

.choose,
.text {
  display: flex;
  justify-content: center;
  align-items: center;
}

.text {
  font-size: 44px;
  padding-bottom: 6px;
  letter-spacing: 2px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}

.bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #373737;
  z-index: -1;
}

.input {
  margin: 0 3px 0 1px;
}
.input__label {
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}
.input__on {
  opacity:.........完整代码请登录后点击上方下载按钮下载查看

网友评论0