Toggle navigation
在线编辑器
在线代码
文本比较
jQuery下载
前端库
在线手册
登录/注册
下载代码
html
css
js
分享到微信朋友圈
X
html
点击汉堡图标 →
Sobre / About
Habilidades / Skills
Trabalhos / Jobs
Contato / Contact
css
html { box-sizing: border-box; } body{overflow: hidden} *, *:after, *:before { box-sizing: inherit; } a { color: #333; text-decoration: none; } html { width: 100%; height: 100%; } body { background: #161616; width: 100%; height: 100%; font-family: Arial, Helvetica, sans-serif; color: #fff; padding: 60px; } h1 { width: 100%; text-align: center; padding: 40px 0; } .open { position: fixed; top: 40px; right: 40px; width: 50px; height: 50px; display: block; cursor: pointer; transition: opacity 0.2s linear; } .open:hover { opacity: 0.8; } .open span { display: block; float: left; clear: both; height: 4px; width: 40px; border-radius: 40px; background-color: #fff; position: absolute; right: 3px; top: 3px; overflow: hidden; transition: all 0.4s ease; } .open span:nth-child(1) { margin-top: 10px; z-index: 9; } .open span:nth-child(2) { margin-top: 25px; } .open span:nth-child(3) { margin-top: 40px; } .sub-menu { transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55); height: 0; width: 0; right: 0; top: 0; position: absolute; background-color: rgba(38, 84, 133, 0.54); border-radius: 50%; z-index: 18; overflow: hidden; } .sub-menu li { display: block; float: right; clear: both; height: auto; margin-right: -160px; transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55); } .sub-menu li:first-child { margin-top: 180px; } .sub-menu li:nth-child(1) { -webkit-transition-delay: 0.05s; } .sub-menu li:nth-child(2) { -webkit-transition-delay: 0.10s; } .sub-menu li:nth-child(3) { -webkit-transition-delay: 0.15s; } .sub-menu li:nth-child(4) { -webkit-transition-delay: 0.20s; } .sub-menu li:nth-child(5) { -webkit-transition-delay: 0.25s; } .sub-menu li a { color: #fff; font-family: 'Lato', Arial, Helvetica, sans-serif; font-size: 16px; width: 100%; display: block; float: left; line-height: 40px; } .oppenned .sub-menu { opacity: 1; height: 400px; width: 400px; } .oppenned span:nth-child(2) { overflow: visible; } .oppenned span:nth-child(1), .oppenned span:nth-child(3) { z-index: 100; -webkit-transform: rotate(45deg); transform: rotate(45deg); } .oppenned span:nth-child(1) { -webkit-transform: rotate(45deg) translateY(12px) translateX(12px); transform: rotate(45deg) translateY(12px) translateX(12px); } .oppenned span:nth-child(2) { height: 400px; width: 400px; right: -160px; top: -160px; border-radius: 50%; background-color: rgba(38, 84, 133, 0.54); } .oppenned span:nth-child(3) { -webkit-transform: rotate(-45deg) translateY(-10px) translateX(10px); transform: rotate(-45deg) translateY(-10px) translateX(10px); } .oppenned li { margin-right: 168px; } .button { display: block; float: left; clear: both; padding: 20px 40px; background: #fff; border-radius: 3px; border: 2px solid #10a1ea; overflow: hidden; position: relative; } .button:after { transition: -webkit-transform 0.3s ease; transition: transform 0.3s ease; transition: transform 0.3s ease, -webkit-transform 0.3s ease; content: ""; position: absolute; height: 200px; width: 400px; -webkit-transform: rotate(45deg) translateX(-540px) translateY(-100px); transform: rotate(45deg) translateX(-540px) translateY(-100px); background: #10a1ea; z-index: 1; } .button:before { transition: -webkit-transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55); transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55); transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55), -webkit-transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55); content: attr(title); position: absolute; top: 0; left: 0; width: 100%; height: 100%; color: #fff; z-index: 2; text-align: center; padding: 20px 40px; -webkit-transform: translateY(200px); transform: translateY(200px); } .button:hover { text-decoration: none; } .button:hover:after { -webkit-transform: translateX(-300px) translateY(-100px); transform: translateX(-300px) translateY(-100px); } .button:hover:before { -webkit-transform: translateY(0); transform: translateY(0); } .container { display: flex; max-width: 80%; justify-content: center; margin: 0 auto; } .card { position: relative; z-index: 10; width: 280px; border-radius: 4px; padding-bottom: 40px; background: #131e32; overflow: hidden; display: flex; justify-content: center; align-items: center; } .card figcaption { position: absolute; bottom: 0; padding: 10px; color: #fff; } .card img { max-width: 100%; border: 1px solid #222; transition: .4s; } .card:hover img { -webkit-transform: scale(1.1); transform: scale(1.1); }
JavaScript
$(document).ready(function() { $(document).delegate('.open', 'click', function(event) { $(this).addClass('oppenned'); event.stopPropagation(); }) $(document).delegate('body', 'click', function(event) { $('.open').removeClass('oppenned'); }) $(document).delegate('.cls', 'click', function(event) { $('.open').removeClass('oppenned'); event.stopPropagation(); }); });
粒子
时间
文字
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号