Removing the delay of a lightbox

Hello everybody,
Actually, I have 3 problems I can’t solve by myself, I checked all over google and youtube already.

  1. Lightbox delay
    I use a lightbox as sidebar menu. But whenever I click on the button, there is a delay of 2 secondes for the sidebar menu (lightbox) to show up. Is it a way to take off this delay ?
    I would like a faster reactivity…

  2. Rolling up & down sidebar
    Also, is there a way to make the sidebar menu appears when you roll up the mouse ? and disappears when rolling down ? Something similar to Givenchy.com 's menu display ?

  3. Header
    I noticed a very small space above the Header, something like 1 or 2 pixel. Even if you fulfill the Header, whenever you roll up or down the page, you can see throught the space btween the header and the top of the page.
    How to remove it ?

Thank you in advance for any help.

Trev.

8 Likes

Hi Trev,

I would recommend browsing the Wix Code Resource pages for comprehensive information on how to use Wix Code. There you will find video tutorials, articles, API docs, and examples.

To change the Lightbox delay, just click on the settings button and you can change the delay, as well as other settings:

Note that this forum is dedicated to Wix Code. For questions regarding other issues, please contact Wix support team , as they know best.

Good luck,

Yisrael

This doesn answer the question about Lightbox delay, your answer is about automatic display but the main question is if rather connect call to lightbox by button, it sucks so much the delay is unprofessional,

I think the point Trevth and Spark are making is that even with lightbox delay set to zero there is still delay in showing the lightbox. It’s very frustrating as i have the same problem. And i agree it looks unprofessional. We would like to know if there is something in six code that would help prevent this. Just showing an obvious screen shot of the light box panel is of no help wahatsoever and rather ignores the question.

@andymedley The screen shot addresses the question by showing the Lightbox default delay of 2 seconds. The delay can be set to 0 in the Lightbox Setting panel.

@yisrael-wix Yes that’s obvious, but even when set to zero there is still a delay! Thats the issue and that’s why we’re asking if there is a way of sorting that out in wix code.

@andymedley I suspect it might just be a page load delay like all other pages. This isn’t really a Wix Code issue.I would suggest checking with the Wix support team . They will check with system regarding this issue.

@andymedley Andy, instead of a lightbox, use a pinned box element. You can also set it to show on all pages if you need it to. It loads much faster than lightbox.

@skmedia thankyou David!

Just wanted to add my vote to this. There is indeed a buggy delay between when I click the lightbox’s trigger button, and when the lightbox displays. Makes it nearly unusable if we’re trying to create a professional feeling website.

@skmedia , Thanks for your reply. Currently, I have a hamburger menu icon triggered to make my menu-containing lightbox appear. So with what you’re describing about a pinned box, is there any way for the user to still be able to toggle the pinned box’s visibility? (For instance, they click a menu icon and it appears; then they click an x and the pinned box goes away.) Thanks again!

@courtneybmansell Yes, absolutely Courtney. It’s the same thing in principle, except you’ll be seeing this pinned hidden menu on all pages that have header and footer enabled in the editor. This isn’t that big a deal as long as you know how to hide hidden elements in the editor and use the overlapping elements on right click.

Just set the hamburger menu to show the box onClick and hide the box after the close icon’s onClick is triggered. You can add any of Wix’s animations to this through the GUI or WixCode.

Agreed. Can anyone help identify the issues here? Perhaps too many elements on the lightbox?

My lightbox loads very slow, sometimes 3-4 seconds after clicking a table row that we have configured to trigger.

I agreed. Lightbox side menu is not good.
I have replaced from Lightbox side menu to similar one.

Please check my site.

(Sorry, my site is Japanese.But you can check menu.)

I can tell my code if you are interesting.

Hi Keiichi, Please could you let me know the code for this- as I’m having the same issue as everyone else! Many thanks

Did you set the delay in the Lightbox Setting panel to 0?

Yes Yisrael, I have but it’s just glitchy so it’s not a great user experience and takes at least 3-4 seconds to respond

I believe @zenrow used a box with a vector art hamburger menu like this ☰, and changes it to an X on click, as well as showing the box with no animation or delay. Then there’s a nice onmouseout from the box that closes it and changes the icon back.

That would make sense! I’ll give it a go, many thanks!

@zenrow Would you be able to provide me your code?