Toggle navigation
在线编辑器
在线代码
文本比较
jQuery下载
前端库
在线手册
登录/注册
下载代码
html
css
js
分享到微信朋友圈
X
html
Full Screen Navigation Overlay
An example of a full screen navigation overlay utilizing flexbox.
Toggle Me
css
body { background: RGBA(29, 20, 35, 1); font-family: 'Muli'; -webkit-font-smoothing: antialiased; } main { padding: 60px 15px; text-align: center; max-width: 100%; } h1 { font-size: 2.5em; font-weight: 300; color: rgba(255, 255, 255, 0.9); margin: 0 0 10px; } @media screen and (min-width: 600px) { h1 { font-size: 3em; } } h2 { margin: 0 0 50px; font-size: 1.5em; font-weight: 200; color: rgba(255, 255, 255, 0.6); } aside { position: fixed; width: 100%; height: 100%; top: 0; left: 0; background: linear-gradient(200deg, #27156E, #6A2A88, #9F4981); opacity: 0; visibility: hidden; -webkit-transition: all .5s ease; transition: all .5s ease; z-index: 2; } .open { opacity: 1; visibility: visible; } nav { text-align: center; height: 95vh; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; } nav ul { margin: 0; padding: 0; list-style: none; } nav ul li { -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-flex: 1; -ms-flex: 1; flex: 1; line-height: 20vh; } nav ul li a { font-size: 1.5em; -webkit-transition: all 0.5s ease; transition: all 0.5s ease; display: block; text-decoration: none; color: rgba(255, 255, 255, 0.5); } nav ul li a:hover { color: rgba(255, 255, 255, 0.9); -webkit-transform: scale(1.1); transform: scale(1.1); } nav ul li a:hover:before { visibility: visible; -webkit-transform: scaleX(1); transform: scaleX(1); } nav ul li a:before { content: ""; position: absolute; width: 50%; height: 2px; bottom: 0; left: 25%; background: white; visibility: hidden; -webkit-transform: scaleX(0); transform: scaleX(0); -webkit-transition: all 0.3s ease-in-out 0s; transition: all 0.3s ease-in-out 0s; } @media screen and (min-width: 600px) { nav ul li a { font-size: 3em; } } button { padding: 15px 40px; background: transparent; border: 1px solid rgba(255, 255, 255, 0.4); color: white; border-radius: 8px; -webkit-transition: all .5s ease; transition: all .5s ease; } button:hover { border: 1px solid white; } .close { position: fixed; top: 40px; right: 60px; color: white; z-index: 3; cursor: pointer; font-family: sans-serif; } .close span, .close span:before, .close span:after { border-radius: 4px; height: 5px; width: 35px; background: white; position: absolute; display: block; content: ''; } .close span { background: transparent; } .close span:before { -webkit-transform: rotate(45deg); transform: rotate(45deg); } .close span:after { -webkit-transform: rotate(-45deg); transform: rotate(-45deg); } .outer-close { position: absolute; right: 0; top: 0; width: 85px; height: 85px; cursor: pointer; }
JavaScript
(function($) { $(function() { $('.toggle-overlay').click(function() { $('aside').toggleClass('open'); }); }); })(jQuery);
粒子
时间
文字
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号