bxslider-3 icon indicating copy to clipboard operation
bxslider-3 copied to clipboard

BX Slider in Safari starts on bx-clone

Open meandhim-josh opened this issue 11 years ago • 8 comments

As above, when using the slider in safari on a desktop. The first slide shown is the bx-clone. And therefore is showing the wrong slide first. Even with start slide set to 0.

Does anyone else have this issue/ found a fix?

Thanks

meandhim-josh avatar May 02 '13 08:05 meandhim-josh

I have the same issue on safari. I am running the latest versions on osx 10.8.4

soonairbourne avatar Jun 25 '13 18:06 soonairbourne

This happens with videos, too. It can bee seen in the demo http://bxslider.com/examples/video. Safari starts on the second slide (the image) rather than the Vimeo video.

patrickjackson avatar Aug 07 '13 17:08 patrickjackson

it doesnt seem to skip the slide when more than one img or video embed is in each slide (in safari)... try this site I created with it. http://mattgraif.com here is one where i just used images... http://logosbymatt.com

So... I just did an experiment and added another tag. I just used paragraph tags and added it to every slide and guess what! It starts on the first slide! Crude but effective.

soonairbourne avatar Aug 07 '13 18:08 soonairbourne

Same bug here with Safari 6.0.5. I think I've found a simple workaround : hide the bx-clone image with CSS :

.bx-clone { display: none; }

ghost avatar Aug 22 '13 08:08 ghost

@Vincent87 - your fix worked perfect for me! Thanks.

bradhussey avatar Apr 03 '14 04:04 bradhussey

@Vincent87 - Great Fix. I was thinking the same thing but i wasn't sure it worked. Anyway now is working perfectly :D

ghost avatar Jun 01 '14 18:06 ghost

You can't use this fix if you're going for the slide effect with an infinite loop.

puijob avatar Nov 03 '14 11:11 puijob

I think I found a fix for the CSS fix.

Just use jQuery callback when declering options of the slider:

onSlideBefore: function($slideElement, oldIndex, newIndex){ $(".bx-clone").show(); }

this way You initially hide the bx-clone, and than show it when needed. works on my place.

piotrbox avatar Jun 17 '15 21:06 piotrbox