适合手机端的全屏菜单飞入飞出动画效果代码
代码语言:html
所属分类:菜单导航
代码描述:适合手机端的全屏菜单飞入飞出动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!doctype html> <html lang="zh"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/reset.min.css"> <style> /* -------------------------------- Primary style -------------------------------- */ *, *::after, *::before { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } html { font-size: 62.5%; } body { font-size: 1.6rem; font-family: "Segoe UI", "Lucida Grande", Helvetica, Arial, "Microsoft YaHei", FreeSans, Arimo, "Droid Sans", "wenquanyi micro hei", "Hiragino Sans GB", "Hiragino Sans GB W3", "FontAwesome", sans-serif; color: #C8C8C8; background-color: #242325; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } a { color: #DC965A; text-decoration: none; } /* -------------------------------- Main Components -------------------------------- */ /*header { position: relative; height: 180px; line-height: 180px; } header h1 { font-size: 2.4rem; text-align: center; } @media only screen and (min-width: 1170px) { header { height: 300px; line-height: 300px; } header h1 { font-size: 3.2rem; font-weight: 300; } }*/ .cd-section { padding: 2em; margin-top: 5em; text-align: center; } .cd-bouncy-nav-trigger { /* button style */ background: #DC965A; color: #ffffff; padding: 1.2em 2em; border-radius: 10em; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 0 10px #171718; } .no-touch .cd-bouncy-nav-trigger:hover { background: #e0a36f; } .cd-bouncy-nav-modal { position: fixed; z-index: 1; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(36, 35, 37, 0.9); opacity: 0; visibility: hidde.........完整代码请登录后点击上方下载按钮下载查看
网友评论0