帮助中心
获取牛币
联系我们
关于我们
版权声明
素材牛首页
微博登录
QQ登录
微信扫码登录
注册
登录
新浪微博
QQ登陆
微信登录
热门搜索:
小程序
支付
Java
后台模板
上传
商城模板
jQuery
手机
Thinkphp
微信
Vue.js
首 页
网页特效
整站源码
PHP实例
网站模版
工具箱
常用代码
论坛
游戏源码
资源分享
当前位置:
首页
»
精选常用代码
» jQuery点击弹出全屏菜单
jQuery点击弹出全屏菜单
浏览:990次
-
评论:1次
-
发布时间:2018-12-11
Html
Css
Js
item 1
item 2
item 3
item 4
@import url(https://fonts.googleapis.com/css?family=Lato); body,html { background-color:#14213D; height:100%; width:100%; padding:0; margin:0; font-family:'Lato',sans-serif; } .nav { position:relative; width:auto; display:inline-block; border:none; } .btn-nav { position:fixed; top:50px; left:30px; background:transparent; border:none; padding:10px; -webkit-transition:all .5s ease; -moz-transition:all .5s ease; -ms-transition:all .5s ease; -o-transition:all .5s ease; transition:all .5s ease; cursor:pointer; z-index:99999; } .btn-nav:focus { outline:0; } .icon-bar { display:block; margin:6px 0; width:40px; height:5px; background-color:#FFFFFF; } .btn-nav:hover .icon-bar { -webkit-transition:all 1s ease; -moz-transition:all 1s ease; -ms-transition:all 1s ease; -o-transition:all 1s ease; transition:all 1s ease; background-color:#FCA311; } .nav-content { position:fixed; top:-100%; bottom:0; left:0; right:0; background:#000000; display:block; height:100%; z-index:9; } .nav-list { list-style:none; padding:0; position:relative; top:30%; } .item-anchor:after { content:""; position:absolute; width:3px; height:3px; left:0; bottom:0; z-index:9; background:transparent; -webkit-transition:all 1s ease; -moz-transition:all 1s ease; -ms-transition:all 1s ease; -o-transition:all 1s ease; transition:all 1s ease; } .item-anchor { color:#fff; font-size:30px; text-transform:uppercase; position:relative; text-decoration:none; padding:10px; } .item-anchor:hover,.item-anchor:focus { color:#FCA311; -webkit-transition:all 1s ease; -moz-transition:all 1s ease; -ms-transition:all 1s ease; -o-transition:all 1s ease; transition:all 1s ease; } .item-anchor:hover:after,.item-anchor:focus:after { width:100%; background:#FCA311; -webkit-transition:all 1s ease; -moz-transition:all 1s ease; -ms-transition:all 1s ease; -o-transition:all 1s ease; transition:all 1s ease; } .nav-item { margin:40px auto; text-align:center; } .animated { display:block; margin:0 auto; } .animated:hover .icon-bar,.animated:focus .icon-bar { background-color:#FCA311; } .animated:focus { cursor:pointer; z-index:9999; } .middle { margin:0 auto; } .icon-bar { -webkit-transition:all .7s ease; -moz-transition:all .7s ease; -ms-transition:all .7s ease; -o-transition:all .7s ease; transition:all .7s ease; z-index:999999; } .animated .icon-bar { z-index:999999; background-color:#FCA311; } .animated .top { -webkit-transform:translateY(10px) rotateZ(45deg); -moz-transform:translateY(10px) rotateZ(45deg); -ms-transform:translateY(10px) rotateZ(45deg); -o-transform:translateY(10px) rotateZ(45deg); transform:translateY(10px) rotateZ(45deg); } .animated .bottom { -webkit-transform:translateY(-11px) rotateZ(-45deg); -moz-transform:translateY(-11px) rotateZ(-45deg); -ms-transform:translateY(-11px) rotateZ(-45deg); -o-transform:translateY(-11px) rotateZ(-45deg); transform:translateY(-11px) rotateZ(-45deg); } .animated .middle { width:0; } @keyframes showNav { from { top:-100%; } to { top:0; } }@-webkit-keyframes showNav { from { top:-100%; } to { top:0; } }@-moz-keyframes showNav { from { top:-100%; } to { top:0; } }@-o-keyframes showNav { from { top:-100%; } to { top:0; } }.showNav { -webkit-animation:showNav 1s ease forwards; -moz-animation:showNav 1s ease forwards; -o-animation:showNav 1s ease forwards; animation:showNav 1s ease forwards; } @keyframes hideNav { from { top:0; } to { top:-100%; } }@-webkit-keyframes hideNav { from { top:0; } to { top:-100%; } }@-moz-keyframes hideNav { from { top:0; } to { top:-100%; } }@-o-keyframes hideNav { from { top:0; } to { top:-100%; } }.hideNav { -webkit-animation:hideNav 1s ease forwards; -moz-animation:hideNav 1s ease forwards; -o-animation:hideNav 1s ease forwards; animation:hideNav 1s ease forwards; } .hidden { display:none; }
$(window).load(function() { $('.btn-nav').on('click tap', function() { $('.nav-content').toggleClass('showNav hideNav').removeClass('hidden'); $(this).toggleClass('animated'); }); });
↑上面代码改变,会自动显示代码结果
jQuery调用版本:
1.11.3
<!doctype html><html><head><meta charset="utf-8"><title>jQuery点击弹出全屏菜单-www.sucainiu.com</title><script src="https://libs.baidu.com/jquery/1.11.3/jquery.min.js"></script><style>
</style></head><body>
<script>
</script>
</body></html>
立即下载
收藏
积分说明:注册即送10牛币,每日签到可获得5牛币,成为VIP会员可永久免牛币下载!
充值积分
充值会员
更多说明»
代码描述:jQuery弹出全屏菜单覆盖层CSS3过渡
基于jquery的弹出全屏菜单覆盖层,css3过渡特效,简单美观实用
立方体旋转轮播图效果
楼层悬浮跟随导航
讨论这个常用代码(1)
回答他人问题或分享心得会奖励牛币
Lv2 入门
19***86
2018年12月16日
评论有牛逼
回复
文明上网,理性发言! 😉 阿里云幸运券,
戳我领取
发表评论
提交回复
我的积分余额:
0
已下载次数:
990
所需牛币:
5
开始下载
牛币获取:
签到、评论、充值
» 在线充值
(10牛币=1元)
成为VIP可永久免积分下载全部常用代码
» 查看详情
VIP
客服
签到
充值