css+svg实现checkbox开关按钮效果代码

代码语言:html

所属分类:表单美化

代码描述:css+svg实现checkbox开关按钮效果代码

代码标签: 开关 按钮 效果

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


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

<head>

  <meta charset="UTF-8">
  

  
  
<style>
@import url("https://fonts.googleapis.com/css2?family=Lato&display=swap");
html {
  box-sizing: border-box;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

body {
  background-image: linear-gradient(48deg, #5a72b5 0%, #e5efe9 70%);
  color: #121943;
  display: grid;
  flex-direction: column;
  font-family: "Lato", sans-serif;
  font-size: 1em;
  height: 100vh;
  place-items: center;
  line-height: 1.2;
}

.heading {
  font-size: 1.5em;
  margin-bottom: 12px;
}

.card {
  background: #fff;
  background-image: linear-gradient(48deg, #fff 0%, #e5efe9 100%);
  border-top-right-radius: 24px;
  border-bottom-left-radius: 24px;
  box-shadow: -20px 20px 35px 1px rgba(10, 49, 86, 0.18);
  display: flex;
  flex-direction: column;
  padding: 32px;
  margin: 40px.........完整代码请登录后点击上方下载按钮下载查看

网友评论0