bigSlide.js
bigSlide.js copied to clipboard
Right side is not working if left side is also existing
I want to implement left & right side nav similar to http://www.vouchercodes.co.uk/ but right side nav is not working. Because style of .wrap
has left: 0px
(left side causes it).
To solve it: set left: auto
when toggling right side
To solve it: set left: auto when toggling right side
Does this resolve the issue? If so, does this just need to be documented?
Thanks!
Hi ascott1,
Yes, I solved it by using beforeOpen
. Full code is
$('.left-menu-link').bigSlide({
menu: '#left-menu',
side: 'left'
});
$('.right-menu-link').bigSlide({
menu : '#right-menu',
side : 'right',
beforeOpen: function () {
$('.push').css('left', 'auto');
}
});
I think the plugin should take care the case when both 2 sides are existing.
Anyway, thank you for your great plugin.
I think the plugin should take care the case when both 2 sides are existing.
I agree! Thank you for documenting your fix in the meantime.