off-canvas-menu

Foundation 6 Off-canvas menu auto-close after click

老子叫甜甜 提交于 2020-01-04 01:37:45
问题 I've been searching how to auto-close off-canvas menu after some menu item is clicked but nothing seems to work. So I followed guide on how to make off-canvas menu on Foundation 6 docs and it works. This part is okay. Now when I click on some link menu just stays there and I want it to close. Does anyone know how to fix that. I've found snippet that should do the trick but my menu stops showing after I appy this JS. Others report the same problem. $(document).foundation({ offcanvas : { open

Can't implement anchor smooth scrolling with off canvas menu/content

点点圈 提交于 2019-12-12 02:22:00
问题 I’m looking for help on a project I’m working on and I can’t seem to figure it out. I’ve searched and tried various scripts as well as no conflict scripts. I’m hoping someone can help me out. I have a single page that anchors from the nav to content on the page. When you hover over an image in the middle of the page, you can click to an off canvas page. I’ve got this working, however I would like to have smooth scrolling when you click on the main navigation at the bottom of the page. It

Foundation Off-Canvas sticky menu bar to stick to bottom

跟風遠走 提交于 2019-12-12 02:10:34
问题 I am trying to create an off-canvas menu with foundation 6 like it's done in the official site. When it comes to the mobile menu bar, I'd like to make it sticky to the bottom of the screen. .title-bar { position: fixed; width: 100%; bottom: 0; } But as soon as I click the mobile menu, the menu bar jumps away as if it was absolute instead of fixed . Anyone had this problem and solved it yet? 回答1: There are a few changes to be made. The <div class="content"> should be mentioned inside the <div