Toggle navigation
在线编辑器
在线代码
文本比较
jQuery下载
前端库
在线手册
登录/注册
下载代码
html
css
js
分享到微信朋友圈
X
html
Basic Box Hover
Hover
Swiggle Box Hover
Hover
Check Box Hover
Hover
css
@import url(https://fonts.googleapis.com/css?family=Open+Sans); *, *::before, *::after { box-sizing: border-box; } body { background-color: #1F1F1F; margin: 25px 0; } span.title { margin: 0 auto; color: #BBB; font-family: 'Open Sans', sans-serif; font-size: 0.85rem; text-align: center; display: block; } .basicBox, .swiggleBox, .checkBox { width: 130px; height: 65px; margin: 15px auto; color: #4274D3; font-family: 'Open Sans', sans-serif; font-size: 1.15rem; line-height: 65px; text-transform: uppercase; text-align: center; position: relative; cursor: pointer; } svg { position: absolute; top: 0; left: 0; } svg rect, svg path, svg polyline { fill: none; stroke: #4274D3; stroke-width: 1; } .basicBox:hover svg rect, .swiggleBox:hover svg path, .checkBox:hover svg polyline { stroke: #4274D3; } /* Basic Box */ svg rect { stroke-dasharray: 400, 0; -webkit-transition: all 0.8s ease-in-out; -moz-transition: all 0.8s ease-in-out; -ms-transition: all 0.8s ease-in-out; -o-transition: all 0.8s ease-in-out; } .basicBox:hover svg rect { stroke-width: 3; stroke-dasharray: 35, 245; stroke-dashoffset: 38; -webkit-transition: all 0.8s ease-in-out; -moz-transition: all 0.8s ease-in-out; -ms-transition: all 0.8s ease-in-out; -o-transition: all 0.8s ease-in-out; } /* Swiggle Box */ svg path { stroke-dasharray: 265, 0; -webkit-transition: all 1s ease-in-out; -moz-transition: all 1s ease-in-out; -ms-transition: all 1s ease-in-out; -o-transition: all 1s ease-in-out; } .swiggleBox:hover svg path { stroke-width: 3; stroke-dasharray: 0, 350; stroke-dashoffset: 20; -webkit-transition: all 1s ease-in-out; -moz-transition: all 1s ease-in-out; -ms-transition: all 1s ease-in-out; -o-transition: all 1s ease-in-out; } /* Check Box */ .checkBox { /* Add Padding Left To Center Text */ } .checkBox svg { /* Presentation Purposes */ margin-left: -10px; } .checkBox svg rect, .checkBox svg polyline { fill: none; stroke: #4274D3; stroke-width: 1; -webkit-transition: all 0.8s ease-in-out; -moz-transition: all 0.8s ease-in-out; -ms-transition: all 0.8s ease-in-out; -o-transition: all 0.8s ease-in-out; } .checkBox:hover svg rect { stroke-width: 2; -webkit-transition: all 0.8s ease-in-out; -moz-transition: all 0.8s ease-in-out; -ms-transition: all 0.8s ease-in-out; -o-transition: all 0.8s ease-in-out; } .checkBox:hover svg polyline { stroke-width: 2; -webkit-transition: all 0.8s ease-in-out; -moz-transition: all 0.8s ease-in-out; -ms-transition: all 0.8s ease-in-out; -o-transition: all 0.8s ease-in-out; } .checkBox svg .button { stroke-dasharray: 400px, 0; } .checkBox:hover svg .button { stroke-dasharray: 0, 400px; stroke-dashoffset: 33px; } /* Check Mark Effect */ .box, .checkMark { opacity: 0; } .checkBox:hover .box { -webkit-animation: boxDisplay 0.2s forwards; -moz-animation: boxDisplay 0.2s forwards; -ms-animation: boxDisplay 0.2s forwards; -o-animation: boxDisplay 0.2s forwards; animation: boxDisplay 0.2s forwards; -webkit-animation-delay: 0.65s; -moz-animation-delay: 0.65s; -ms-animation-delay: 0.65s; -o-animation-delay: 0.65s; animation-delay: 0.65s; } .checkBox:hover .checkMark { -webkit-animation: checkDisplay 0.2s forwards; -moz-animation: checkDisplay 0.2s forwards; -ms-animation: checkDisplay 0.2s forwards; -o-animation: checkDisplay 0.2s forwards; animation: checkDisplay 0.2s forwards; -webkit-animation-delay: 1s; -moz-animation-delay: 1s; -ms-animation-delay: 1s; -o-animation-delay: 1s; animation-delay: 1s; } /* Check Box Display */ @-webkit-keyframes boxDisplay { 0% { opacity: 0; } 100% { opacity: 1; } } @-moz-keyframes boxDisplay { 0% { opacity: 0; } 100% { opacity: 1; } } @-ms-keyframes boxDisplay { 0% { opacity: 0; } 100% { opacity: 1; } } @-o-keyframes boxDisplay { 0% { opacity: 0; } 100% { opacity: 1; } } @keyframes boxDisplay { 0% { opacity: 0; } 100% { opacity: 1; } } /* Check Mark Display */ @-webkit-keyframes checkDisplay { 0% { opacity: 0; } 100% { opacity: 1; } } @-moz-keyframes checkDisplay { 0% { opacity: 0; } 100% { opacity: 1; } } @-ms-keyframes checkDisplay { 0% { opacity: 0; } 100% { opacity: 1; } } @-o-keyframes checkDisplay { 0% { opacity: 0; } 100% { opacity: 1; } } @keyframes checkDisplay { 0% { opacity: 0; } 100% { opacity: 1; } }
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号