纯css实现一个泡泡checkbox选中未选中动画效果

代码语言:html

所属分类:表单美化

代码描述:纯css实现一个泡泡checkbox选中未选中动画效果

代码标签: 一个 泡泡 checkbox 选中 选中 动画 效果

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


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

<head>

 
<meta charset="UTF-8">

 
 
<style>
* {
        border: 0;
        box-sizing: border-box;
        margin: 0;
        padding: 0;
}
:root {
        --bubbleTiming: cubic-bezier(0.5,0.15,0.25,1.75);
        font-size: calc(40px + (60 - 40) * (100vw - 320px) / (1280 - 320))
}
body, input {
        font: 1em/1.5 sans-serif;
}
body {
        background: hsl(223,90%,65%);
        display: grid;
        height: 100vh;
        place-items: center;
}
label, .bubble {
        display: block;
        -webkit-tap-highlight-color: transparent;
}
label {
        animation: float 4s ease-in-out infinite;
}
.bubble, .bubble:before, .bubble:after  {
        transition-duration: 0.2s;
}
.bubble, .bubble:.........完整代码请登录后点击上方下载按钮下载查看

网友评论0