I need some help with setting up a modal inside the menu of my mobile and tablet view of my website.
every time I try testing the “open modal” opinion it automatically closes the mobile/tabelt menu drop-down.
is there anything I am doing wrong or is it not at all possible to do?
any help would be appreciated!
I’ve added a gif to explain visually what I’m talking about.
Hi. It looks like the modal pushes away other elements.
If you want to build a modal natively on Webflow., That modal usually has to be wrapped by a div which is fixed position and with an z-index value, and the modal exists inside of it.
You have to share a read-only for others to know what’s going on.
So I tried what you suggested yet to no avail the modal still continues to push the away the other elements.
I even tried to see if matching the tablet view with the deskstop view would do anything but still the same result.
Are you trying to have a modal trigger button on the nav bar ( desktop ) and in the hamburger menu ( mobile ) that when clicked, closes the menu and displays the modal centered on the page wherever the user is scrolled to?
So in general I prefer to keep things clean and simple, to avoid interference.
Right now your entire modal is inside of the nav, which means it’s physically inside of the dropdown menu.
Since it’s an interactions modal, that creates some layers of complexity… the dropdown will want to close on click plus the nav position will vary depending on where you’re scrolled in the page, plus z-index and stacking order are all affected.
my goodness! Thank you so much for the detailed explination and even taking the time to do a whole screen recording.
Thank you so so much for the advice! I will be sure to give this a try!