Toggle navigation
在线编辑器
在线代码
文本比较
jQuery下载
前端库
在线手册
登录/注册
下载代码
html
css
js
分享到微信朋友圈
X
html
From Top
From Left
From Right
From Middle
From Bottom
css
/* ~~~~~~~ INIT. BTN ~~~~~~~ */ .btn { position: relative; padding: 1.4rem 4.2rem; padding-right: 3.1rem; font-size: 1.4rem; color: var(--inv); letter-spacing: 1.1rem; text-transform: uppercase; -webkit-transition: all 600ms cubic-bezier(0.77, 0, 0.175, 1); transition: all 600ms cubic-bezier(0.77, 0, 0.175, 1); -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } .btn:before, .btn:after { content: ''; position: absolute; -webkit-transition: inherit; transition: inherit; z-index: -1; } .btn:hover { color: var(--def); -webkit-transition-delay: .6s; transition-delay: .6s; } .btn:hover:before { -webkit-transition-delay: 0s; transition-delay: 0s; } .btn:hover:after { background: var(--inv); -webkit-transition-delay: .4s; transition-delay: .4s; } /* From Top */ .from-top:before, .from-top:after { left: 0; height: 0; width: 100%; } .from-top:before { bottom: 0; border: 1px solid var(--inv); border-top: 0; border-bottom: 0; } .from-top:after { top: 0; height: 0; } .from-top:hover:before, .from-top:hover:after { height: 100%; } /* From Left */ .from-left:before, .from-left:after { top: 0; width: 0; height: 100%; } .from-left:before { right: 0; border: 1px solid var(--inv); border-left: 0; border-right: 0; } .from-left:after { left: 0; } .from-left:hover:before, .from-left:hover:after { width: 100%; } /* From Right */ .from-right:before, .from-right:after { top: 0; width: 0; height: 100%; } .from-right:before { left: 0; border: 1px solid var(--inv); border-left: 0; border-right: 0; } .from-right:after { right: 0; } .from-right:hover:before, .from-right:hover:after { width: 100%; } /* From Middle */ .from-middle:before { top: 0; left: 50%; height: 100%; width: 0; border: 1px solid var(--inv); border-left: 0; border-right: 0; } .from-middle:after { bottom: 0; left: 0; height: 0; width: 100%; background: var(--inv); } .from-middle:hover:before { left: 0; width: 100%; } .from-middle:hover:after { top: 0; height: 100%; } /* From Bottom */ .from-bottom:before, .from-bottom:after { left: 0; height: 0; width: 100%; } .from-bottom:before { top: 0; border: 1px solid var(--inv); border-top: 0; border-bottom: 0; } .from-bottom:after { bottom: 0; height: 0; } .from-bottom:hover:before, .from-bottom:hover:after { height: 100%; } /* ~~~~~~~~~~~~ GLOBAL SETTINGS ~~~~~~~~~~~~ */ *, *:before, *:after { -webkit-box-sizing: border-box; box-sizing: border-box; } body { --def: #96B7C4; --inv: #fff; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; height: 100vh; width: 100%; background-image: linear-gradient(-25deg, #616161 0%, #96B7C4 100%); } html { font-size: 12px; font-family: 'Playfair Display', serif; } div {margin-bottom: 3rem;} div:last-child {margin-bottom: 0;}
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号