bqworks / slider-pro

A modular, responsive and touch-enabled jQuery slider plugin that enables you to create elegant and professionally looking sliders.
MIT License
877 stars 390 forks source link

Layer Effects Not Working Right #292

Closed richardblythe closed 3 years ago

richardblythe commented 5 years ago

I have two text layers over my slide. The first layer slides in from the left, then a second layer slides down from the top. The layers do not remain visible like I have specified unless I quickly move the mouse over the slide at the beginning. It's like the mouse event is triggering code that makes the layer effects behave properly. Here's a short video that illustrates the problem:

https://youtu.be/oKce5qirOrA

richardblythe commented 5 years ago

I have created a hack that resolves the problem for now. This is certainly not ideal but it works for now:

$slider.sliderPro({ "init": function () { //hack to fix weird layers bug setTimeout(function(){ $slider.trigger('mouseover'); },800); setTimeout(function(){ $slider.trigger('mouseout'); },802); }, "gotoSlide" : function () { //hack to fix weird layers bug setTimeout(function(){ $slider.trigger('mouseover'); },800); setTimeout(function(){ $slider.trigger('mouseout'); },802); } });

davidghi commented 5 years ago

Hi. Sorry for the late reply! If you post a link to the page, I could check if some setting is causing it to behave in this way.

Best, David

richardblythe commented 5 years ago

Thanks for your reply and for your help. Here's the site: https://harvestnortheast.com/

davidghi commented 5 years ago

You're welcome! You can fix the issue without the hack by increasing the value of the autoplayDelay option (default value is 5000 ms) to 6000 or more. The current problem is that the slider tries to navigate to the next slide too early after the layers become visible.

richardblythe commented 5 years ago

Thank you so much!

On Thu, Sep 5, 2019, 8:39 AM David Ghiurau notifications@github.com wrote:

You're welcome! You can fix the issue without the hack by increasing the value of the autoplayDelay option (default value is 5000 ms) to 6000 or more. The current problem is that the slider tries to navigate to the next slide too early after the layers become visible.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/bqworks/slider-pro/issues/292?email_source=notifications&email_token=AENNL5ZDVRF622TZJRCL3OLQID4XLA5CNFSM4IKVOMYKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD566HKQ#issuecomment-528343978, or mute the thread https://github.com/notifications/unsubscribe-auth/AENNL5Z3TOLI6FTXITYLNELQID4XLANCNFSM4IKVOMYA .

davidghi commented 5 years ago

You're welcome!