Toggle navigation
在线编辑器
在线代码
文本比较
jQuery下载
前端库
在线手册
登录/注册
下载代码
html
css
js
分享到微信朋友圈
X
html
Cut
Copy
Paste
css
* { --primary-1: 230, 15%, 22%; /* Neutral */ --primary-2: 230, 15%, 20%; /* Dark */ --primary-3: 230, 15%, 18%; /* Darker */ --primary-4: 230, 15%, 45%; /* Lightest */ --secondary: 166, 69%, 81%; /* Splash of Color */ --transition: cubic-bezier(0.77, 0, 0.175, 1); } *, *:before, *:after { box-sizing: border-box; } body { height: 100vh; margin: 0; display: grid; place-items: center; background: linear-gradient(296.91deg, #3f3547 3.73%, #7D81A4 97.68%); } .multi-button { --shadow: 286, 24%, 14%; position: relative; padding: .2rem; background: hsl(var(--primary-1)); border: 1px solid hsl(var(--primary-2)); box-shadow: 1px 1px 1px hsla(var(--shadow),.12), 3px 3px 3px hsla(var(--shadow),.11), 5px 5px 5px hsla(var(--shadow),.1), 7px 7px 7px hsla(var(--shadow),.09), 11px 11px 11px hsla(var(--shadow),.08), 13px 13px 13px hsla(var(--shadow),.07), 17px 17px 17px hsla(var(--shadow),.06), 19px 19px 19px hsla(var(--shadow),.05), 23px 23px 23px hsla(var(--shadow),.04), 29px 29px 29px hsla(var(--shadow),.03); border-radius: 4px; user-select: none; } label { display: inline-block; position: relative; padding: .8rem 1.4rem; color: #5C617B; font-size: 16px; font-weight: 600; font-family: 'Poppins', 'Helvetica', sans-serif; text-transform: uppercase; letter-spacing: 4px; border: none; border-radius: 2px; background: none; transition: all .4s var(--transition); cursor: pointer; } span { margin-right: .1rem; } span svg { height: 16px; width: 16px; } label:before { content: ''; position: absolute; height: 1px; width: 0; top: 20%; left: 50%; background: hsla(var(--secondary),.35); border-radius: 2px; transition: all .25s var(--transition); } label:hover:before { width: 80%; left: 10%; border-top: 1px solid hsl(var(--secondary)); } input:checked + label:before { height: 60%; bottom: 20%; } input:checked + label { color: hsl(var(--secondary)); transition-delay: .1s; } input[type="checkbox"] { display: none; }
JavaScript
粒子
时间
文字
hover
canvas
3d
游戏
音乐
火焰
水波
轮播图
鼠标跟随
动画
css
加载动画
导航
菜单
按钮
滑块
tab
弹出层
统计图
svg
×
Close
在线代码下载提示
开通在线代码永久免费下载,需支付20jQ币
开通后,在线代码模块中所有代码可终身免费下!
您已开通在线代码永久免费下载,关闭提示框后,点下载代码可直接下载!
您已经开通过在线代码永久免费下载
对不起,您的jQ币不足!可通过发布资源 或
直接充值获取jQ币
取消
开通下载
<!doctype html> <html> <head> <meta charset="utf-8"> <title>按钮选中点击效果-jq22.com</title> <script src="https://www.jq22.com/jquery/jquery-1.10.2.js"></script> <style>
</style> </head> <body>
<script>
</script>
</body> </html>
2012-2021 jQuery插件库版权所有
jquery插件
|
jq22工具库
|
网页技术
|
广告合作
|
在线反馈
|
版权声明
沪ICP备13043785号-1
浙公网安备 33041102000314号