Toggle navigation
在线编辑器
在线代码
文本比较
jQuery下载
前端库
在线手册
登录/注册
下载代码
html
css
js
分享到微信朋友圈
X
html
basic
icon
text
css
@import url(https://fonts.googleapis.com/css?family=Lato:400,900); @import url(https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.min.css); * { font-family: inherit; -webkit-font-smoothing: antialiased; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; } html { font-size: 62.5%; font-family: 'Lato', sans-serif; } body { background: #243142; padding: 20px 0 0; } p { color: #B8C7DB; text-align: center; font-size: 1.5rem; margin: 30px auto 12px; } .flip-switch { display: block; height: 35px; width: 62px; background: #182029; padding: 3px 0 0; margin: 0 auto; perspective: 50px; -webkit-perspective: 50px; -moz-perspective: 50px; border-radius: 50px; -webkit-border-radius: 50px; -moz-border-radius: 50px; } .flip-switch input { display: none; } .flip-switch label { display: block; position: relative; height: 32px; width: 56px; outline: none; margin: 0 auto; -webkit-appearance: none; background: none; border: none; transform-style: preserve-3d; -webkit-transform-style: preserve-3d; -moz-transform-style: preserve-3d; border-radius: inherit; -webkit-border-radius: inherit; -moz-border-radius: inherit; animation: uncheck 0.6s ease-out; -webkit-animation: uncheck 0.6s ease-out; -moz-animation: uncheck 0.6s ease-out; box-shadow: none; -webkit-box-shadow: none; -moz-box-shadow: none; } .flip-switch label:before, .flip-switch label:after { content: ''; position: absolute; top: 0; left: 0; height: inherit; width: inherit; backface-visibility: hidden; -webkit-backface-visibility: hidden; -moz-backface-visibility: hidden; border-radius: inherit; -webkit-border-radius: inherit; -moz-border-radius: inherit; text-align: center; } .flip-switch label:before { z-index: 2; transform: rotateY(0deg); -webkit-transform: rotateY(0deg); -moz-transform: rotateY(0deg); background: #E65757; } .flip-switch label:after { transform: rotateY(180deg); -webkit-transform: rotateY(180deg); -moz-transform: rotateY(180deg); background: #77E371; } .flip-switch input:checked + label { transform: rotateY(180deg); -webkit-transform: rotateY(180deg); -moz-transform: rotateY(180deg); animation: check 0.6s ease-out; -webkit-animation: check 0.6s ease-out; -moz-animation: check 0.6s ease-out; } .flip-switch.flip-switch-icon label:before, .flip-switch.flip-switch-icon label:after { font-family: 'FontAwesome'; color: white; font-size: 2rem; line-height: 32px; } .flip-switch.flip-switch-icon label:before { content: '\f00d'; } .flip-switch.flip-switch-icon label:after { content: '\f00c'; } .flip-switch.flip-switch-text label:before, .flip-switch.flip-switch-text label:after { color: white; line-height: 32px; font-weight: 900; font-size: 1.3rem; } .flip-switch.flip-switch-text label:before { content: 'OFF'; } .flip-switch.flip-switch-text label:after { content: 'ON'; } @keyframes check { 0% { transform: rotateY(0deg); } 50% { transform: rotateY(195deg); } 75% { transform: rotateY(165deg); } 100% { transform: rotateY(180deg); } } @-webkit-keyframes check { 0% { -webkit-transform: rotateY(0deg); } 50% { -webkit-transform: rotateY(195deg); } 75% { -webkit-transform: rotateY(165deg); } 100% { -webkit-transform: rotateY(180deg); } } @-moz-keyframes check { 0% { -moz-transform: rotateY(0deg); } 50% { -moz-transform: rotateY(195deg); } 75% { -moz-transform: rotateY(165deg); } 100% { -moz-transform: rotateY(180deg); } } @keyframes uncheck { 0% { transform: rotateY(180deg); } 50% { transform: rotateY(-15deg); } 75% { transform: rotateY(15deg); } 100% { transform: rotateY(0deg); } } @-webkit-keyframes uncheck { 0% { -webkit-transform: rotateY(180deg); } 50% { -webkit-transform: rotateY(-15deg); } 75% { -webkit-transform: rotateY(15deg); } 100% { -webkit-transform: rotateY(0deg); } } @-moz-keyframes uncheck { 0% { -moz-transform: rotateY(180deg); } 50% { -moz-transform: rotateY(-15deg); } 75% { -moz-transform: rotateY(15deg); } 100% { -moz-transform: rotateY(0deg); } }
JavaScript
粒子
时间
文字
hover
canvas
3d
游戏
音乐
火焰
水波
轮播图
鼠标跟随
动画
css
加载动画
导航
菜单
按钮
滑块
tab
弹出层
统计图
svg
×
Close
在线代码下载提示
开通在线代码永久免费下载,需支付20jQ币
开通后,在线代码模块中所有代码可终身免费下!
您已开通在线代码永久免费下载,关闭提示框后,点下载代码可直接下载!
您已经开通过在线代码永久免费下载
对不起,您的jQ币不足!可通过发布资源 或
直接充值获取jQ币
取消
开通下载
<!doctype html> <html> <head> <meta charset="utf-8"> <title>CSS翻转Check-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号