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

displaySlideQty doesn't work

Open somerussian opened this issue 13 years ago • 8 comments

I have the following code:

$(".view-id-slideshow.view-display-id-block_4 ul:first").bxSlider({ controls: false, mode: "fade", auto: true, displaySlideQty: 3, moveSlideQty: 3 });

And it works but I can see only 1 image in the slide (instead of 3). How can I fix it?

somerussian avatar Sep 04 '11 07:09 somerussian

maybe you can try to add a width to the li tag

tba6440 avatar Sep 06 '11 22:09 tba6440

nice idea, but didn't work. Here is the test page: http://kendo74.ru/nashi-eksperty/glushko-aleksandr You can see both slideshow and it's photos there. Any other ideas?

somerussian avatar Sep 07 '11 06:09 somerussian

I am having an issue where mode:fade doesnt work with multiple slides (where mode:horizontal does)

adrian-fc avatar Sep 07 '11 09:09 adrian-fc

Any success with this? Im trying to accomplish something exactly like this.

My displaySlideQty is 3 and want my slider to work with mode: 'fade'. Only one slide gets displayed :(

My function:

$(function(){ $('#scrollable').bxSlider({
mode:'fade' ,
displaySlideQty: 3, moveSlideQty: 3 });
});

tejasunkara avatar Nov 10 '11 01:11 tejasunkara

I had to 'cheat'

    displaySlideQty: 3,
    moveSlideQty: 3,
    infiniteLoop: false,
    pager: true,
    controls: false, 
    pagerSelector: '#pager1',
    auto: true,
    pause: 5000,
    speed: 0,
    onBeforeSlide: function(currentSlide, totalSlides){
  $('.carousel').fadeTo(400, 0);
},
    onAfterSlide: function(currentSlide, totalSlides){
  $('.carousel').fadeTo(400, 1);
}

Prob not the best idea (and the fades dont overlap) but the client was happy enough

adrian-fc avatar Nov 10 '11 09:11 adrian-fc

I found a solution about this issue :

$(".slider .slide").each(function(index) {
    var displaySlideQty = 2;

    if(index % displaySlideQty == 0) {
        $(this).before("<div class=\"slide-group\"></div>");
    }

    $(this).appendTo($(this).prev());
});

$(".slider").bxSlider({
    mode: 'fade',
    pager: true,
    controls: false,
    speed: 600
});

ghost avatar Dec 08 '11 13:12 ghost

I've found another cheat for this, it's quite easy. If You want to display 'n' slides at once (and move by 'n' as well), You can put every 'n' slides in some wrapper. In example, for two slides at once, instead of:

<div id="slider1">
  <div>Slide one content</div>
  <div>Slide two content</div>
  <div>Slide three content</div>
  <div>And so on...</div>
</div>

we've got something like this:

<div id="slider1">
  <div>
    <div>Slide one content</div>
    <div>Slide two content</div>
  </div>
  <div>
    <div>Slide three content</div>
    <div>And so on...</div>
  </div>
</div>

Now, those wrappers are threated as slides.

ghost avatar Feb 15 '12 15:02 ghost

@tasiek

That's cool. I understand what you accomplish with this approach, but I'm not sure nesting is necessary.

Check out this example: http://bxslider.com/examples/display-move-multiple-slides-once-example-two

This example uses an unordered list, but I think div's would work as well.

aarondaniels00 avatar Feb 21 '12 04:02 aarondaniels00

@wandoledzep we really need this feature.

b3ckstage avatar Oct 22 '13 07:10 b3ckstage