css实现别针引脚开关切换交互效果代码
代码语言:html
所属分类:表单美化
代码描述:css实现别针引脚开关切换交互效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
* {
box-sizing: border-box;
}
body, html {
width: 100%;
margin: 0;
padding: 0;
height: 100%;
}
body {
display: flex;
justify-content: center;
align-items: center;
background-color: #3a49fd;
}
.toggle-wrapper {
padding: 16px;
position: relative;
}
.toggle-input {
position: absolute;
width: 0;
height: 0;
opacity: 0;
outline: none;
}
.toggle-input:checked + label {
background-color: #fff;
}
.toggle-input:checked + label > .toggle-circle {
left: calc(100% - 44px);
}
.toggle-input:checked + label > .toggle-circle .pin-icon {
tra.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0