支持键盘快捷键操作的全屏菜单弹出动画效果代码
代码语言:html
所属分类:菜单导航
代码描述:支持键盘快捷键操作的全屏菜单弹出动画效果代码,使用了mousetrap与classie。
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/normalize.css"> <style> @import url(http://fonts.googleapis.com/css?family=Lato:300,400); .clearfix:after { clear:both; } .clearfix:before,.clearfix:after { content:''; display:table; } *,*:after,*:before { -webkit-box-sizing:border-box; -moz-box-sizing:border-box; box-sizing:border-box; } ul li { list-style:none; } body { background:#fff; color:#fff; line-height:1.25; font-family:'Lato','Avenir Next',Arial,sans-serif; -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility; } a { color:#2dbaef; text-decoration:none; outline:none; } a:hover,a:focus { color:#373e18; } .CMD_header { margin:0 auto; padding:1.5em 0em 1.5em; text-align:center; background:#363e49; position:fixed; width:100%; } .CMD_header h1 a { color:#707980; -webkit-transition:color 0.2s; transition:color 0.2s; } h2.aftheader { font-weight:400; color:#707980; font-size:16px; margin-bottom:0; } .CMD_header h1 a:hover { color:#fff; } .CMD_header h1 { margin:0 0px 20px; font-weight:300; font-size:2.5em; -webkit-transition:all 0.6s; transition:all 0.6s; } .CMD_buy { position:absolute; top:49px; right:50px; background:#2dbaef; padding:10px 20px 10px 20px; border-radius:5px; line-height:14px; font-size:16px; font-weight:400; } .CMD_buy a { color:#fff; } .CMD_header h1 span { display:block; padding:0 0 0.6em 0.1em; font-size:0.6em; opacity:0.7; } .CMD_effectslist { margin:0 auto; padding-top:138px; padding-bottom:50px; } .demo { padding-top:190px; } #back { margin-right:20px; width:120px; background:#707980; } .CMD_content { text-align:left; color:#707980; font-size:16px; padding:20px; } .CMD_contactinfo { text-align:center; width:500px; margin:0 auto; } .CMD_info { margin:0; padding:0; } .CMD_in.........完整代码请登录后点击上方下载按钮下载查看
网友评论0