I’m guessing that menu is pre-determined. I’m try to use a WY Menu for client editing. Responsive behavior for a hamburger us not supported yet in Web Yep. My issue is that My menu will open on mobile?touch devices but it won’t close. Trying to figure out an onclick way of closing the menu.
I used just CSS for a slide out.
I’m guessing that menu is pre-determined. I’m try to use a WY Menu for client editing. Responsive behavior for a hamburger us not supported yet in Web Yep. My issue is that My menu will open on mobile?touch devices but it won’t close. Trying to figure out an onclick way of closing the menu.
I used just CSS for a slide out.
Not sure what you mean by pre-determined. The site in the link has one menu for desktop screens and another for smaller/mobile screens featuring the drop down menu and hamburger (which is just constructed from html boxes not CSS) using Walters original code and instructions from the start of this thread. I followed those instructions and it worked a first time giving me a slide out menu that opened and closed I all devices. However as you’ll notice there’s JavaScript as well as CSS involved.
I suggest you follow Walters tutorial and you’ll end up with with something similar to what you have now but with a menu that closes, although you’ll have to create the hamburger and styling yourself.
I did something quite similar on the Inlay documentation site: http://docs.inlay.io If you look at the stylesheet (all made in Freeway, for a change!) http://docs.inlay.io/css/sheet1.css you can see a class style named .shy. It applies a translateX transform to the menu when it’s applied to the menu. The animation effect is just from the transition:all part of that rule, which makes this move take 400ms to complete. Further down the list, the .sidebar style gives the menu the semi-transparent background (the rgba color definition had to be made in the Extended interface).
The JavaScript was added to the page with Protaculous2, and consisted entirely of this:
In my example, the sidebar was drawn on the page in the location where it was going to appear, set to Position Fixed, height to 100%, and the width was adjusted along with the .shy class translateX amount so it would collapse down to the bar. Then I used the Item/Extended dialog to add the classnames sidebar and shy to the navigation bar. In Freeway, it looked as it would open, and when the page loads, it is in the hidden mode, and when you mouse over it (or touch it in iOS), it opens up until you click something or mouse away.
Walter
On Jan 5, 2016, at 9:40 AM, grantsymon wrote:
I posted this link a few days ago in the Exhibeo section, but I’m wondering if there is any way that I can get my current implementation of css menu (made with the css menus action) to do this sliding/hiding thing … and also have the transparency?
I find that tutorial hard to follow. If I had it in Freeway example file I could figure it out in minutes.
Billy
I’m no expert but I got all I needed from Walters original post including the demo in the link he provided. Just a matter of adding the JavaScript and CSS markup to your page and adding the extended classes to the divs making up the menu.
Remember, if you do use Protaculous, it will add the outer wrapper code for you, so you can leave this part off entirely (script tag and first and last lines of actual code):
The Action always writes that part for you. You only have to enter the actual “guts” of the code. The outermost function is there to make sure that all of the page elements have finished downloading before the script fires, and the script tag is there to explain to the browser that the context has changed and it needs to pay extra attention.
Walter
On Feb 10, 2016, at 6:46 PM, Dave Dunning email@hidden wrote:
Dave,
If you get a chance today please sent me that example. I’ve tried this and I’m missing something. I see the background color of the sidebar showing up but the translateX function is not happening.
Billy
freewaytalk mailing list
email@hidden
Update your subscriptions at:
Sorry been a bit hectic this morning! OK I’ll have some lunch and put together an example. In the meantime have you made sure that the name/ID of the sidebar is the same as the name/ID in the script you’ve added to the markup?
Also have you added the classes ‘shy’ and ‘sidebar’ (without quote marks) in the extended for your sidebar div?
D
freewaytalk mailing list
email@hidden
Update your subscriptions at:
Ok so that worked. A few things that were happening.
First the javascript needed to be in the not in the
Also I had no src link for the prototype.js. That wasn’t provided in Walters example. Pretty important.
On last question can I adjust the width of my sidebar that is seen on hover?
Thank you so much for your help on this. Unfortunately with me I have to sometimes be spoonfed these things. I’m not a coder so it didn’t occur to me that I needed a src to more script. It makes sense, but there you are.
Thanks again,
Billy
freewaytalk mailing list
email@hidden
Update your subscriptions at:
No probs and yes sorry about forgetting the link to prototype.js! the javascript can go in either markup locations, it’s just a bit more efficient in .
Yes you can have the width anything you like you just have to remember to adjust the X measurement to allow for the always visible strip. If you’re sidebar is 400px wide and you want to have 60px visible then adjust X to -340px.
No probs re the help, I’m not a coder either but with the advise of Walter, Delta Dave and the crew here I’ve managed to advance quite a bit recently, so keep on chipping away.
Cheers
Dave
freewaytalk mailing list
email@hidden
Update your subscriptions at: