woocommerce / FlexSlider

An awesome, fully responsive jQuery slider plugin
http://www.woocommerce.com/flexslider/
GNU General Public License v2.0
4.92k stars 1.69k forks source link

Flexslider - turn Infinite-Loop off wont work #1763

Closed LPGGNecromant closed 5 years ago

LPGGNecromant commented 5 years ago

Hey there,

I just want to stop the Slider at the last Slide. So no infinite-loop but it does ... after the last slide, i get back the first slide.

2.7.2 - flexslider.css & jquery.flexslider.js | jQuery: 3.4.1 | Bootstrap: 4.0.0

Code:

<div class="flexslider start">
        <ul class="slides">
          <li>
            1
          </li>
          <li>
            2
          </li>
          <li>
            3
          </li>
          <li>
            4
          </li>
        </ul>
      </div>
$('.flexslider.start').flexslider({
        animation: "slide",
        animationLoop: false,
        slideshow: false,
        controlNav: false,
        mousewheel: true,
        keyboard: true,
        touch: true,
        prevText: '',
        nextText: ''
    });

EDIT: It wont show the arrows as expected but you can still scroll & use keyboard at last slide.