toggled.zf.responsiveNavigation isn't firing for me.
$('[data-responsive-toggle]').on('toggled.zf.responsiveNavigation', function(e){
console.log('hello world');
});
Any ideas on what I'm doing wrong would be appreciated.
Framework: Sites
toggled.zf.responsiveNavigation isn't firing for me.
$('[data-responsive-toggle]').on('toggled.zf.responsiveNavigation', function(e){
console.log('hello world');
});
Any ideas on what I'm doing wrong would be appreciated.
responsive navigationjavascripttoggleevents
toggled.zf.responsiveNavigation isn't firing for me.
$('[data-responsive-toggle]').on('toggled.zf.responsiveNavigation', function(e){
console.log('hello world');
});
Any ideas on what I'm doing wrong would be appreciated.
Get up to speed FAST, learn straight from the experts who built Foundation.
Learn MoreLearn Foundation from the creators in our interactive online webinars which will keep you up to date with the latest trends and skills needed to win your projects.
Or if you prefer, contact the Foundation Team at [email protected] or (408) 341-0600 x635
Colin,
I have a vague memory of encountering a similar problem a while back...eventually I figured out I needed to use toggled.zf.responsiveToggle instead of toggled.zf.responsiveNavigation.
For example in one site (using Foundation 6.4.3) I use the following code to detect the toggle and change the class of the menu button from a hamburger to a cross and vice versa...
with a title bar definition that looks like this:
(This is in conjunction with 'burger' and 'cross' styles from the very useful SAS Burger mixin - see: https://github.com/jorenvanhee/sass-burger).
Hope this helps.
Cheers, Snig