Toggle navigation
在线编辑器
在线代码
文本比较
jQuery下载
前端库
在线手册
登录/注册
下载代码
html
css
js
分享到微信朋友圈
X
html
Hover
Hover
Hover
Hover
Hover
Hover
Hover
css
body, html { background-color: #f7f7f7; width: 100%; height: 100%; } .container { width: 180px; height: 500px; position: absolute; top: 0; bottom: 0; left: 0; right: 0; margin: auto; } .btn { text-decoration: none; display: inline-block; height: 40px; width: 150px; background-color: #1c293a; line-height: 40px; text-align: center; position: relative; margin: 15px; color: #f7f7f7; } .btn:before, .btn:after { -webkit-transition: .3s ease; transition: .3s ease; } /* btn-1 */ .btn-1:before { content: ''; width: 150px; height: 40px; position: absolute; top: 50%; left: 50%; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%); border: 1px solid #1c293a; box-sizing: border-box; } .btn-1:hover:before { width: 142px; height: 32px; border: 1px solid #f7f7f7; } /* btn-2 */ .btn-2:before { content: ''; width: 150px; height: 40px; position: absolute; top: 0%; left: 0%; box-sizing: border-box; border-right: 1px solid #000; border-bottom: 1px solid #000; } .btn-2:hover:before { -webkit-transform: translate(4px, 4px); transform: translate(4px, 4px); } /* btn-3 */ .btn-3:before, .btn-3:after { content: ''; width: 150px; height: 40px; position: absolute; top: 0%; left: 0%; box-sizing: border-box; } .btn-3:before { border-right: 1px solid #000; border-bottom: 1px solid #000; } .btn-3:after { border-left: 1px solid #000; border-top: 1px solid #000; } .btn-3:hover:before { -webkit-transform: translate(4px, 4px); transform: translate(4px, 4px); } .btn-3:hover:after { -webkit-transform: translate(-4px, -4px); transform: translate(-4px, -4px); } /* btn-4 */ .btn-4 { color: white; z-index: 3; background-color: transparent; box-sizing: border-box; border: 1px solid #1c293a; } .btn-4:before { content: ''; width: 150px; height: 40px; position: absolute; top: 50%; left: 50%; z-index: -2; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%); box-sizing: border-box; background-color: #1c293a; } .btn-4:hover:before { width: 100px; height: 0px; } .btn-4:hover { color: #1c293a; } /* btn-5 */ .btn-5 { z-index: 3; background-color: transparent; } .btn-5:before { content: ''; width: 150px; height: 40px; position: absolute; top: 50%; left: 50%; z-index: -2; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%); box-sizing: border-box; background-color: #1c293a; -webkit-transition: .6s; transition: .6s; } .btn-5:hover:before { -webkit-transform: translate(-50%, -50%) rotateX(180deg); transform: translate(-50%, -50%) rotateX(180deg); } /* btn-6 */ .btn-6 { z-index: 3; background-color: transparent; } .btn-6:before, .btn-6:after { content: ''; width: 150px; height: 40px; position: absolute; top: 0%; left: 0%; z-index: -2; background-color: #1c293a; -webkit-transform-origin: bottom; transform-origin: bottom; -webkit-transition: .2s; transition: .2s; } .btn-6:after { -webkit-transition-delay: .2s; transition-delay: .2s; height: 0; } .btn-6:hover:after { height: 40px; } .btn-6:hover:before { -webkit-transform: rotateX(90deg); transform: rotateX(90deg); } /* btn-7 */ .btn-7 { z-index: 3; color: #1c293a; line-height: 80px; overflow: hidden; -webkit-transition: .3s; transition: .3s; border: 1px solid #1c293a; box-sizing: border-box; } .btn-7:before { line-height: 40px; content: 'Hover'; color: white; width: 150px; height: 40px; position: absolute; top: 0%; left: 0%; z-index: -2; -webkit-transform: translateY(0px); transform: translateY(0px); } .btn-7:hover { background-color: #f7f7f7; line-height: 40px; } .btn-7:hover:before { -webkit-transform: translateY(-40px); transform: translateY(-40px); }
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号