纯css美化checkbox实现客厅照明开光效果代码

代码语言:html

所属分类:表单美化

代码描述:纯css美化checkbox实现客厅照明开光效果代码

代码标签: checkbox 实现 客厅 照明 开光 效果

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


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

<head>

  <meta charset="UTF-8">

<style>
/* Variables  */
/**/
/* Reset */
*, *::after, *::before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transform-style: preserve-3d;
}

/* Generic */
body {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.one {
  cursor: pointer;
  appearance: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  position: relative;
  width: 370px;
  height: 280px;
  box-shadow: 0 10px 15px #98849b, 0 50px 15px rgba(152, 132, 155, 0.15), inset 5px 0 0 #D5BFBD, inset -5px 0 0 #D5BFBD;
  border-top: 5px solid #FFFFFF;
  border-bottom: 5px solid #D5BFBD;
  border-radius: 44px;
  transition: all .05s;
  background-color: #E7E7E7;
  /************************/
  /************************/
  /*******************/
}
@media (max-width: 400px) {
  .one {
    transform: scale(0.8);
  }
}
.one::before {
  content: '';
  position: absolute;
  width: 200vw;
  height: 200vh;
  background-image: radial-gradient(circle, #C6C6CE, #D6D6DE);
  z-index: -1;
  transform: translateZ(-1px);
}
.one::after .........完整代码请登录后点击上方下载按钮下载查看

网友评论0