Toggle navigation
在线编辑器
在线代码
文本比较
jQuery下载
前端库
在线手册
登录/注册
下载代码
html
css
js
分享到微信朋友圈
X
html
Stylish
Logo
Home
About
Clients
Burger King
Southwest Airlines
Levi Strauss
Services
Print Design
Web Design
Mobile App Development
Contact
css
body { font-family: "Roboto", sans-serif; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100vh; background: linear-gradient(45deg, #ea4f4c 0%, #6d0019 100%); } body .signature { font-style: italic; font-size: 12px; color: #212121; padding-top: 15px; transition: all 0.3s ease-in-out; } body .signature:hover { color: white; } .navigationWrapper { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 20px; background-color: #222; box-shadow: 0 5px 15px 0 rgba(0, 0, 0, 0.25); color: white; text-transform: uppercase; overflow: hidden; width: 600px; } .navigationWrapper .logoWrapper { display: flex; } .navigationWrapper .logoWrapper .stylish { font-weight: bold; } .navigationWrapper .logoWrapper .logo { padding-left: 4px; color: #ea4f4c; } .navigationWrapper .navigation { display: flex; list-style-type: none; } .navigationWrapper .navigation li { opacity: 1; list-style-type: none; color: white; text-decoration: none; transition: all 0.3s ease-in-out; } .navigationWrapper .navigation .parent { padding: 0 10px; cursor: pointer; } .navigationWrapper .navigation .parent .link { position: relative; display: flex; align-items: center; text-decoration: none; transition: all 0.3s ease-in-out; color: white; } .navigationWrapper .navigation .parent .link:hover { color: #ea4f4c; } .navigationWrapper .navigation .parent .link .fa-minus { opacity: 0; transition: all 0.3s ease-in-out; position: absolute; left: -16px; top: 3px; } .navigationWrapper .navigation .parent .link .fa-plus { opacity: 1; transition: all 0.3s ease-in-out; } .navigationWrapper .navigation .parent .link .fas { color: #ea4f4c; margin: -2px 4px 0; font-size: 10px; transition: all 0.3s ease-in-out; } .navigationWrapper .navigation .subnavigation { display: none; list-style-type: none; width: 500px; position: absolute; top: 40%; left: 25%; margin: auto; transition: all 0.3s ease-in-out; background-color: #222; } .navigationWrapper .navigation .subnavigation li a { font-size: 17px; padding: 0 5px; } .active.parent { transform: translate(-40px, -25px); } .active.parent .link { font-size: 12px; } .active.parent .link .fa-minus { opacity: 1 !important; font-size: 8px; } .active.parent .link .fa-plus { opacity: 0 !important; } .active.parent .subnavigation { display: flex; } .active#clients .subnavigation { transform: translate(-150px, 17px); } .active#services .subnavigation { transform: translate(-290px, 17px); } .invisible { opacity: 0 !important; transform: translate(50px, 0); }
JavaScript
var clients = document.getElementById('clients'); var services = document.getElementById('services'); clients.addEventListener('click', function() { $(clients).toggleClass("active"); $(".parent:not(#clients)").toggleClass("invisible"); }, false); services.addEventListener('click', function() { $(services).toggleClass("active"); $(".parent:not(#services)").toggleClass("invisible"); }, false);
粒子
时间
文字
hover
canvas
3d
游戏
音乐
火焰
水波
轮播图
鼠标跟随
动画
css
加载动画
导航
菜单
按钮
滑块
tab
弹出层
统计图
svg
×
Close
在线代码下载提示
开通在线代码永久免费下载,需支付20jQ币
开通后,在线代码模块中所有代码可终身免费下!
您已开通在线代码永久免费下载,关闭提示框后,点下载代码可直接下载!
您已经开通过在线代码永久免费下载
对不起,您的jQ币不足!可通过发布资源 或
直接充值获取jQ币
取消
开通下载
<!doctype html> <html> <head> <meta charset="utf-8"> <title>简洁大气的jquery导航菜单-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号