Toggle navigation
在线编辑器
在线代码
文本比较
jQuery下载
前端库
在线手册
登录/注册
下载代码
html
css
js
分享到微信朋友圈
X
html
Responsive Navigation Ideas
#1
Home
About Us
Portfolio
Blog
Contact Us
#2
Home
About Us
Portfolio
Blog
Contact Us
#3
Home
About Us
Portfolio
Blog
Contact Us
#4
Home
About Us
Portfolio
Blog
Contact Us
#5
Home
About Us
Portfolio
Blog
Contact Us
#6
Home
About Us
Portfolio
Blog
Contact Us
css
/** * Demo Stuff */ body { background: #1BBC9B; font-family: 'Montserrat', sans-serif; } .container { text-align: center; } h1 { color: #117964; font-weight: 400; font-size: 2em; margin: 1em 0; } /** * iPhone * Credits: Flat, Scaleable CSS iPhone Illustration by Tom Hergenreter */ .iphone { width: 16.06em; height: 30.6em; border-radius: 1.875em; margin: 2em; position: relative; display: inline-block; background: #fff; } .iphone__item { width: 16.06em; height: 1em; position: absolute; bottom: -2em; color: #158f76; text-align: center; } .iphone__power-btn { width: 2.188em; height: 0.188em; background: #e0e0e0; position: absolute; right: 2.5em; top: -0.188em; } .iphone__left-btn { width: 0.188em; height: 1.25em; top: 3.25em; left: -0.188em; position: absolute; background: #e0e0e0; } .iphone__left-btn:before { content: ''; width: 0.188em; height: 0.875em; position: absolute; top: 3em; background: #e0e0e0; } .iphone__left-btn:after { content: ''; width: 0.188em; height: 0.875em; position: absolute; top: 5.5em; background: #e0e0e0; } .iphone__details { width: 0.438em; height: 0.438em; border-radius: 100%; position: relative; top: 1.313em; left: 8em; background: #7c7c7c; } .iphone__details:before { content: ''; width: 2.5em; height: 0.25em; border-radius: 0.25em; position: absolute; top: 1em; left: -1em; background: #7c7c7c; } .iphone__home-btn { width: 2.25em; height: 2.25em; border-radius: 100%; position: absolute; bottom: 1em; right: 6.75em; background: #f7f7f7; } .iphone__home-btn:before { content: ''; width: 0.813em; height: 0.813em; border: 0.15em solid #a8a8a8; border-radius: 0.2em; position: absolute; top: 0.6em; left: 0.57em; } .iphone__screen { width: 14.5em; height: 22.938em; position: absolute; top: 3.75em; left: 0.75em; overflow: hidden; } .iphone__content { position: relative; background-color: #D2527F; width: 100%; height: 100%; } /** * Navigation Defaults */ .nav { position: absolute; z-index: 100; opacity: 0; transition-property: all; transition-duration: 300ms; } .nav--active .nav { opacity: 1; background-color: #333; } .nav__list { margin: 0; padding: 10px; } .nav__item { list-style-type: none; text-align: left; } .nav__link { font-size: 1.3em; text-transform: uppercase; text-decoration: none; color: #FFFFFF; opacity: 1; transition: opacity 300ms ease-in-out; } /* Default navigation icon */ .nav__trigger { display: block; position: absolute; width: 30px; height: 25px; right: 10px; top: 25px; z-index: 200; } .nav--active .nav__trigger { opacity: 0.5; } .nav__icon { display: inline-block; position: relative; width: 30px; height: 5px; background-color: #FFFFFF; transition-property: background-color, transform; transition-duration: 300ms; } .nav__icon:before, .nav__icon:after { content: ''; display: block; width: 30px; height: 5px; position: absolute; background: #FFFFFF; transition-property: margin, transform; transition-duration: 300ms; } .nav__icon:before { margin-top: -10px; } .nav__icon:after { margin-top: 10px; } /* Don't nest if you don't have to. */ /** * Style #1 */ .style-1 .nav { transform: translateX(-100%); width: 100%; height: 100%; } .style-1 .nav__link { opacity: 0; transition-delay: 500ms; } .style-1 .nav--active .nav__link { opacity: 1; } .style-1 .nav--active .nav { transition: all 300ms ease-in-out; transform: translateX(0); } .style-1 .nav--active .nav__icon { background: rgba(0, 0, 0, 0); } .style-1 .nav--active .nav__icon:before { margin-top: 0; transform: rotate(45deg); } .style-1 .nav--active .nav__icon:after { margin-top: 0; transform: rotate(-45deg); } /** * Style #2 */ .style-2 { perspective: 1000px; } .style-2 .nav { width: 100%; height: 100%; transform: rotateY(180deg); } .style-2 .nav--active .nav { transform: rotateY(360deg); } .style-2 .iphone__content { transform: rotateY(0); transform-style: preserve-3d; transition: all 300ms ease-in-out; } .style-2 .nav--active .iphone__content { transform-style: preserve-3d; transform: rotateY(180deg); } .style-2 .navi__icon { background: rgba(0, 0, 0, 0); } .style-2 .navi__icon:before { margin-top: 0; transform: rotate(90deg); } .style-2 .navi__icon:after { margin-top: 0; transform: rotate(180deg); } .style-2 .nav--active .nav__icon { background: rgba(0, 0, 0, 0); transform: rotate(135deg); } .style-2 .nav--active .nav__icon:before { margin-top: 0; transform: rotate(90deg); } .style-2 .nav--active .nav__icon:after { margin-top: 0; transform: rotate(180deg); } /** * Style #3 */ .style-3 .nav { width: 100%; height: 100%; transform: translateX(100%); } .style-3 .nav--active .nav { transform: translateX(20%); } .style-3 .iphone__content { transform: scale(1) translateX(0); transition: all 300ms ease-in-out; } .style-3 .iphone__screen { background-color: #333; } .style-3 .nav--active .iphone__content { transform: scale(0.9) translateX(-90%); } .style-3 .nav__icon { background: rgba(0, 0, 0, 0); } .style-3 .nav__icon:before { margin-top: 0; transform: rotate(90deg); } .style-3 .nav__icon:after { margin-top: 0; transform: rotate(180deg); } .style-3 .nav--active .nav__icon { transform: rotate(135deg); } /** * Style #4 */ .style-4 .nav { width: 100%; height: 100%; transform: translateY(-100%); } .style-4 .nav--active .nav { transform: translateY(0); } .style-4 .nav--active .nav__icon { transform: rotate(90deg); } .style-4 .nav__link { opacity: 0; transition-delay: 500ms; } .style-4 .nav--active .nav__link { opacity: 1; } /** * Style #5 */ .style-5 .nav { transform: translate(100%, -100%) scale(0.5); border-radius: 100%; } .style-5 .nav--active .nav { transform: translateY(0) scale(1); border-radius: 0; width: 100%; height: 100%; } .style-5 .nav__link { opacity: 0; transition-delay: 500ms; } .style-5 .nav--active .nav__link { opacity: 1; } .style-5 .nav--active .nav__icon { background: rgba(0, 0, 0, 0); } .style-5 .nav--active .nav__icon:before { margin-top: 0; transform: rotate(45deg); } .style-5 .nav--active .nav__icon:after { margin-top: 0; transform: rotate(-45deg); } /** * Style #6 */ .style-6 .nav { transform: rotateZ(-90deg); width: 100%; height: 100%; } .style-6 .nav--active .nav { transform: rotateZ(0); } .style-6 .nav__link { opacity: 0; transition-delay: 500ms; } .style-6 .nav--active .nav__link { opacity: 1; } .style-6 .nav__icon { background: rgba(0, 0, 0, 0); } .style-6 .nav__icon:before { margin-top: 0; transform: rotate(90deg); } .style-6 .nav__icon:after { margin-top: 0; transform: rotate(180deg); } .style-6 .nav--active .nav__icon { transform: rotate(135deg); }
JavaScript
$('.nav__trigger').on('click', function(e){ e.preventDefault(); $(this).parent().toggleClass('nav--active'); });
粒子
时间
文字
hover
canvas
3d
游戏
音乐
火焰
水波
轮播图
鼠标跟随
动画
css
加载动画
导航
菜单
按钮
滑块
tab
弹出层
统计图
svg
×
Close
在线代码下载提示
开通在线代码永久免费下载,需支付20jQ币
开通后,在线代码模块中所有代码可终身免费下!
您已开通在线代码永久免费下载,关闭提示框后,点下载代码可直接下载!
您已经开通过在线代码永久免费下载
对不起,您的jQ币不足!可通过发布资源 或
直接充值获取jQ币
取消
开通下载
<!doctype html> <html> <head> <meta charset="utf-8"> <title>移动端响应式导航栏-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号