Hiding Navigation on scroll

Hi guys,

thanks for your comments.

@Rich

It is exactly this script in use :-). Perhaps a bit hard to investigate cause all is concatenated in one file via CodeKit - but there, starting on line 4274 or so.

@Chris

I assume you mean the Sliding in Menu for mobile?

Basically I would like to share things like those, but I’m not entirely happy with the result. There is something, that doesn’t work as in the original script and I haven’t found out yet what. The mobile menu is Sidr, and attracted me the most cause it has some cool features.

The setup in Freeway isn’t very hard. The item that appears on a certain breakpoint (toggle menu) is constructed directly in Freeway and set to display:none before the breakpoints and set to visible (block) on the breakpoint using inspector. The regular nav is vice versa.

The “Toggle Menu” is a simple link with the external target #sidr-main and identified by the name/value pair id/responsive-menu-button via extended in the hyperlink dialogue.

So the script part looks like this:

/***************** Sidr ******************/

$('#responsive-menu-button').sidr({
    name: 'sidr-main',
    source: '#object-desktopNav',
    body:'#PageDiv'
});

Kind of basic setup following the Responsive Menus documentation on scripts page.

As said: No warranty at all - cause it’s not JustWork™.

Cheers

Thomas


freewaytalk mailing list
email@hidden
Update your subscriptions at: