手机版

jquery和css3实现的炫酷时尚的菜单导航

时间:2021-09-10 来源:互联网 编辑:宝哥软件园 浏览:

今天为大家带来的是jquery和css3实现的不错的导航菜单。点击列表图表后,内容页面向内移动显示菜单项。当单击关闭菜单按钮时,菜单项隐藏,内容页恢复原位。看下图

源码下载

我们看下实现代码:

超文本标记语言代码:

div样式='position:相对;高度: 400像素;宽度: 825像素;margin : auto ' div class=' continer ' div id=' corp _ page ' style=' overflow : scroll ' div style=' width : 100% ' table align=' center ' border=' 0 '单元格边距=' 0 '单元格间距=' 0 ' width=' 100% ' tbodytrttd style=' padd 3360 10px;字体粗细: 100;color : # ffffff ' valign=' top ' WIFEO/CODE/TD/TRT TD style=' padd : 10px;'valign=' top ' post ad impietetratum quod in aliis quoque iam time batur,tamquam licensitia crudelitati indu LTA per suspicionum music um existimati quidam noxii dam aban tur。quorum pars necati,alii puniti bono rum multi station e activatique laribus suis extorres nullo sibi relicto preter querelater as and laci MAS,stipe conlaticia victitabant,etc civiliu stoque imperio ad voluntem converso cruentam,/TD/tr/t body/table/div/div class=' menu ' Item 2br/br/Item 3br/br/Item 4br/img id=' BTN _ menu _ close ' src=' http :0png“style=”光标:指针;//div div style=' top : 0;左: 0;绝对位置:光标:指针;img id=' BTN _菜单' src=' http :1。png '/div/div CSS代码:continer {-WebKit-透视图:600 px-moz-透视:600 px-ms-透视图:600 px透视图:600 pxtop : 0;底部: 0;左: 0;右:0绝对位置:margin : 50pxz-index : 2;} # corp _ page { top : 0;底部: 0;左: 0;右:0绝对位置:背景-color : # dc4b 39;padd : 20px-web套件-transform : Rotatey(0度);-WebKit-transit :全部。3s;-web套件-转换-origin : 100% 100%;-web套件-转换-style : preserve-3d;-moz-transform : Rotatey(0度);-moz-transit :全部。3s;-moz-transform-origin : 100% 100%;-moz-transform-style : preserve-3d;-ms-transform : Rotatey(0度);-ms-transit : all。3s;-ms-transform-origin : 100% 100%;-ms-transform-style :变换: Rotatey(0度);transition: all .3s转换-原始: 100% 100%;变换样式: preserve-3d;}.菜单{ top:0底部:0;左侧:90像素宽度: 200像素;绝对位置:余量: 5pxdisplay:无;页边距-顶部:50像素;背景-颜色:透明;}js代码:

$(文档)。ready(function () {$('#btn_menu ')).单击(函数(){$('#corp_page ')).CSS({ '-web kit-transform ' : ' Rotatey(-20)','-web kit-transition ' : ' all。4s linear ','-web kit-transform-origin ' : ' 100% 100% ','-web kit-transform-style ' : ' preserve-3d ','-moz-transform ' : ' rotateY(-20度','-moz-transition ' 3: '$(')。菜单')。延迟(170)。css({'z-index': '5 ','-web kit-transition ' : ' all。4s ','-moz-transition': 'all .4s ','-ms-transition': 'all .4s ',' transition': 'all .4s'}).fadeIn(' fast ');});$('#btn_menu_close,#corp_page ').单击(函数(){$(').菜单')。淡出("快速")。css({'z-index': '1 ','-web kit-transition ' : ' all。4s ','-moz-transition': 'all .4s ','-ms-transition': 'all .4s ',' transition': 'all。4s ' });$('#corp_page ').CSS({ '-web kit-transform ' : ' Rotatey(0)','-web kit-transition ' : ' all。7s线性','-web kit-transform-origin ' : ' 100% 100% ','-web kit-transform-style ' : ' preserve-3d ','-moz-transform ' : ' rotateY(0)','-moz-transition ' : '全部.});})

版权声明:jquery和css3实现的炫酷时尚的菜单导航是由宝哥软件园云端程序自动收集整理而来。如果本文侵犯了你的权益,请联系本站底部QQ或者邮箱删除。