Hide div when another div is open


I have a lightbox gallery and also a sticky nav bar that appears as you scroll down the page.

The nav bar some how appears on top of everything so some of the gallery is hidden underneath.

Is there a way to hide my nav bar when a div is open and then appear again when closed?

This is my jQuery for the gallery:

                    miniSliderArrowStyle: 2,
                    theme: 'light',
                    showMediumImg: true,
                        openGalleryStyle: 'transform'

and the class for the sticky nav is navbar-fixed-top

Any ideas how I can add/remove class when the my-gallery class is active?


This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.