Toggle navigation
在线编辑器
在线代码
文本比较
jQuery下载
前端库
在线手册
登录/注册
下载代码
html
css
js
分享到微信朋友圈
X
html
Off Canvas Drawer
home
pricing
about
contact us
close
menu
chrome
firefox
IE
edge
safari
opera
android
appleinc
css
html { font-family: 'Lato', sans-serif; } body { margin: 0; overflow-x: hidden; height: 100vh; width: 100vw; } ul { list-style: none; margin: 0; padding: 0; } .msg { font-family: 'Pacifico', cursive; font-size: 8vw; display: flex; flex-direction: column; justify-content: center; height: 100%; max-height: 100%; max-width: 100%; align-items: center; color: #FEFEFE; background-color: #1184F0; } .features { font-family: 'Lato', sans-serif; font-size: 1rem; text-transform: uppercase; } .features li { width: 100%; text-align: center; padding: .25em; } menu, menu label { position: absolute; top: 0; right: 0; } menu { margin: 0; } menu input[type=checkbox] { display: none; } menu input[type=checkbox]:checked + .drawer-list { transform: translatex(0); border-bottom-left-radius: 0; } menu input[type=checkbox]:checked + .drawer-list li { transform: translatex(0); } menu input[type=checkbox]:checked + .drawer-list li:nth-child(1) { transition: transform 0.5s 0.02s ease; } menu input[type=checkbox]:checked + .drawer-list li:nth-child(2) { transition: transform 0.5s 0.04s ease; } menu input[type=checkbox]:checked + .drawer-list li:nth-child(3) { transition: transform 0.5s 0.06s ease; } menu input[type=checkbox]:checked + .drawer-list li:nth-child(4) { transition: transform 0.5s 0.08s ease; } menu input[type=checkbox]:checked + .drawer-list li:nth-child(5) { transition: transform 0.5s 0.1s ease; } menu input[type=checkbox]:checked + .drawer-list li:nth-child(6) { transition: transform 0.5s 0.12s ease; } menu input[type=checkbox]:checked + .drawer-list li:nth-child(7) { transition: transform 0.5s 0.14s ease; } menu input[type=checkbox]:checked + .drawer-list li:nth-child(8) { transition: transform 0.5s 0.16s ease; } menu input[type=checkbox]:checked + .drawer-list li:nth-child(9) { transition: transform 0.5s 0.18s ease; } menu input[type=checkbox]:checked + .drawer-list li:nth-child(10) { transition: transform 0.5s 0.2s ease; } menu input[type=checkbox]:checked + .drawer-list li:nth-child(11) { transition: transform 0.5s 0.22s ease; } menu input[type=checkbox]:checked + .drawer-list li:nth-child(12) { transition: transform 0.5s 0.24s ease; } menu input[type=checkbox]:checked + .drawer-list li:nth-child(13) { transition: transform 0.5s 0.26s ease; } menu input[type=checkbox]:checked + .drawer-list li:nth-child(14) { transition: transform 0.5s 0.28s ease; } menu input[type=checkbox]:checked + .drawer-list li:nth-child(15) { transition: transform 0.5s 0.3s ease; } menu input[type=checkbox]:checked + .drawer-list li:nth-child(16) { transition: transform 0.5s 0.32s ease; } menu input[type=checkbox]:checked + .drawer-list li:nth-child(17) { transition: transform 0.5s 0.34s ease; } menu input[type=checkbox]:checked + .drawer-list li:nth-child(18) { transition: transform 0.5s 0.36s ease; } menu input[type=checkbox]:checked + .drawer-list li:nth-child(19) { transition: transform 0.5s 0.38s ease; } menu input[type=checkbox]:checked + .drawer-list li:nth-child(20) { transition: transform 0.5s 0.4s ease; } menu input[type=checkbox]:checked + .drawer-list li:nth-child(21) { transition: transform 0.5s 0.42s ease; } menu input[type=checkbox]:checked + .drawer-list li:nth-child(22) { transition: transform 0.5s 0.44s ease; } menu input[type=checkbox]:checked + .drawer-list li:nth-child(23) { transition: transform 0.5s 0.46s ease; } menu input[type=checkbox]:checked + .drawer-list li:nth-child(24) { transition: transform 0.5s 0.48s ease; } menu input[type=checkbox]:checked + .drawer-list li:nth-child(25) { transition: transform 0.5s 0.5s ease; } menu input[type=checkbox]:checked + .drawer-list li:nth-child(26) { transition: transform 0.5s 0.52s ease; } menu input[type=checkbox]:checked + .drawer-list li:nth-child(27) { transition: transform 0.5s 0.54s ease; } menu input[type=checkbox]:checked + .drawer-list li:nth-child(28) { transition: transform 0.5s 0.56s ease; } menu input[type=checkbox]:checked + .drawer-list li:nth-child(29) { transition: transform 0.5s 0.58s ease; } menu input[type=checkbox]:checked + .drawer-list li:nth-child(30) { transition: transform 0.5s 0.6s ease; } menu input[type=checkbox]:checked + .drawer-list li:nth-child(31) { transition: transform 0.5s 0.62s ease; } menu input[type=checkbox]:checked + .drawer-list li:nth-child(32) { transition: transform 0.5s 0.64s ease; } menu input[type=checkbox]:checked + .drawer-list li:nth-child(33) { transition: transform 0.5s 0.66s ease; } menu input[type=checkbox]:checked + .drawer-list li:nth-child(34) { transition: transform 0.5s 0.68s ease; } menu input[type=checkbox]:checked + .drawer-list li:nth-child(35) { transition: transform 0.5s 0.7s ease; } menu input[type=checkbox]:checked + .drawer-list li:nth-child(36) { transition: transform 0.5s 0.72s ease; } menu input[type=checkbox]:checked + .drawer-list li:nth-child(37) { transition: transform 0.5s 0.74s ease; } menu input[type=checkbox]:checked + .drawer-list li:nth-child(38) { transition: transform 0.5s 0.76s ease; } menu input[type=checkbox]:checked + .drawer-list li:nth-child(39) { transition: transform 0.5s 0.78s ease; } menu input[type=checkbox]:checked + .drawer-list li:nth-child(40) { transition: transform 0.5s 0.8s ease; } menu input[type=checkbox]:checked + .drawer-list li:nth-child(41) { transition: transform 0.5s 0.82s ease; } menu input[type=checkbox]:checked + .drawer-list li:nth-child(42) { transition: transform 0.5s 0.84s ease; } menu input[type=checkbox]:checked + .drawer-list li:nth-child(43) { transition: transform 0.5s 0.86s ease; } menu input[type=checkbox]:checked + .drawer-list li:nth-child(44) { transition: transform 0.5s 0.88s ease; } menu input[type=checkbox]:checked + .drawer-list li:nth-child(45) { transition: transform 0.5s 0.9s ease; } menu input[type=checkbox]:checked + .drawer-list li:nth-child(46) { transition: transform 0.5s 0.92s ease; } menu input[type=checkbox]:checked + .drawer-list li:nth-child(47) { transition: transform 0.5s 0.94s ease; } menu input[type=checkbox]:checked + .drawer-list li:nth-child(48) { transition: transform 0.5s 0.96s ease; } menu input[type=checkbox]:checked + .drawer-list li:nth-child(49) { transition: transform 0.5s 0.98s ease; } menu input[type=checkbox]:checked + .drawer-list li:nth-child(50) { transition: transform 0.5s 1s ease; } menu input[type=checkbox]:checked + .drawer-list li a { padding-right: 15px; } menu input[type=checkbox]:checked ~ hamburger > i { background-color: transparent; transform: rotate(90deg); } menu input[type=checkbox]:checked ~ hamburger > i:before { transform: translate(-50%, -50%) rotate(315deg); } menu input[type=checkbox]:checked ~ hamburger > i:after { transform: translate(-50%, -50%) rotate(-315deg); } menu input[type=checkbox]:checked ~ hamburger close { color: #FEFEFE; width: 100%; } menu input[type=checkbox]:checked ~ hamburger open { color: transparent; width: 0; } menu .drawer-list { position: fixed; right: 0; top: 0; height: 100vh; width: 100vw; transform: translate(100vw, 0); /* ie workaround */ -ms-transform: translatex(-100vw); box-sizing: border-box; pointer-events: none; padding-top: 125px; transition: width 475ms ease-out, transform 450ms ease, border-radius .8s .1s ease; border-bottom-left-radius: 100vw; background-color: #3d81c0; background-color: rgba(13, 97, 176, 0.8); } @media (min-width: 768px) { menu .drawer-list { width: 25vw; } } menu .drawer-list ul { height: 100%; width: 100%; margin: 0; padding: 0; overflow: auto; overflow-x: hidden; pointer-events: auto; } menu .drawer-list li { list-style: none; text-transform: uppercase; pointer-events: auto; white-space: nowrap; box-sizing: border-box; transform: translatex(100vw); /* ie workaround */ -ms-transform: translatex(-100vw); } menu .drawer-list li:last-child { margin-bottom: 2em; } menu .drawer-list li a { text-decoration: none; color: #FEFEFE; text-align: center; display: block; padding: .5rem; font-size: 1.2em; } @media (min-width: 768px) { menu .drawer-list li a { font-size: 1rem; text-align: right; } } menu .drawer-list li a:hover { cursor: pointer; background-color: #88c2f8; background-color: rgba(17, 132, 240, 0.5); } menu hamburger { position: absolute; display: block; top: 20px; right: 20px; height: 50px; width: 50px; } menu hamburger:hover { cursor: pointer; } menu hamburger text close, menu hamburger text open { text-transform: uppercase; font-size: .8em; align-text: center; position: absolute; transform: translateY(50px); text-align: center; overflow: hidden; transition: width .25s .35s, color .45s .35s; } menu hamburger text close { color: transparent; right: 0; width: 0; } menu hamburger text open { color: #FEFEFE; width: 100%; } menu hamburger > i { position: absolute; width: 100%; height: 2px; top: 50%; background-color: #FEFEFE; pointer-events: auto; transition-duration: .35s; transition-delay: .35s; } menu hamburger > i:before, menu hamburger > i:after { position: absolute; display: block; width: 100%; height: 2px; left: 50%; background: #FEFEFE; content: ""; transition: transform 0.35s; transform-origin: 50% 50%; } menu hamburger > i:before { transform: translate(-50%, -14px); } menu hamburger > i:after { transform: translate(-50%, 14px); } /** SCROLLBAR STYLE FOR WEBKIT BROWSERS */ /* Let's get this party started */ ::-webkit-scrollbar { width: 10px; } /* Track */ ::-webkit-scrollbar-track { -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1); -webkit-border-radius: 10px; border-radius: 10px; } /* Handle */ ::-webkit-scrollbar-thumb { -webkit-border-radius: 10px; border-radius: 10px; background: rgba(0, 0, 0, 0.2); } ::-webkit-scrollbar-thumb:window-inactive { background: rgba(0, 0, 0, 0.1); } /** SCROLLBAR STYLE FOR IE */ body { scrollbar-base-color: #138a72; scrollbar-3dlight-color: #fff; scrollbar-highlight-color: #1abc9c; scrollbar-track-color: #fff; scrollbar-arrow-color: #1abc9c; scrollbar-shadow-color: #1abc9c; scrollbar-dark-shadow-color: #1abc9c; -ms-overflow-style: -ms-autohiding-scrollbar; } .icon { display: inline-block; width: 5vw; height: 4vw; stroke-width: 0; stroke: currentColor; fill: currentColor; }
JavaScript
粒子
时间
文字
hover
canvas
3d
游戏
音乐
火焰
水波
轮播图
鼠标跟随
动画
css
加载动画
导航
菜单
按钮
滑块
tab
弹出层
统计图
svg
×
Close
在线代码下载提示
开通在线代码永久免费下载,需支付20jQ币
开通后,在线代码模块中所有代码可终身免费下!
您已开通在线代码永久免费下载,关闭提示框后,点下载代码可直接下载!
您已经开通过在线代码永久免费下载
对不起,您的jQ币不足!可通过发布资源 或
直接充值获取jQ币
取消
开通下载
<!doctype html> <html> <head> <meta charset="utf-8"> <title>纯CSS导航-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号