I
I
issssrt2015-01-27 14:15:10
css
issssrt, 2015-01-27 14:15:10

How to remove menu twitching?

realtyland.aligan.ru
gyazo.com/b2ba955548f72a71bfdecd9647e35246
Please note that in the APARTMENT OFFERS block, if you click on the photo, the fancibox opens, and then close it, you can see how the menu twitches. As I understand it, because the menu is fixed and the screen width changes when the fancibox opens, but I still don’t understand where it is set in fancybox in css

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Egor Ogurtsov, 2015-01-27
@mrdubz

$(".fb").fancybox({
    openEffect  : 'elastic',
    closeEffect : 'elastic',
    afterShow: function() {
        //$(".nav-menu-fixed").hide();
    },
    afterClose:function() {
        //$(".nav-menu-fixed").show();
    }
});

Try to remove the effects when opening / closing.
I would also replace hide/show with slideUp/slideDown.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question