Navbar links open and close animation happens only once

Hello, I set my navbar links to have mouse click animation which opens a pop-up window.

It works fine on the first trigger for open and close, however, when I click on the same link again a pop-up window won’t open.

I tried setting higher z-index for navbar but it didn’t work.

Has anybody had a similar issue and knows how I can resolve this it?

Many thanks in advance.


Here is my public share link: Webflow - Portfolio Website
(how to access public share link)

Hi, there’s a mistake. When you click ‘close’, you should hide the ‘model wrapper 1’, not the ‘model 1’ class. That’s the issue. Change it to ‘model wrapper 1’ and then the issue will be resolved.

I have a suggestion: give every div block a meaningful name. Don’t use numerical names like 1 and 2, as it can be confusing.

Thank you Fahad_PH I have resolved the issue. Thank you also for suggestion I will pay more attention to div block names.

1 Like