BozanicJosip
BozanicJosip

Reputation: 507

Fullpage slides infinite scroll

Is it possible with fullPage.js plugin to have an end to the horizontal scrolls of the slides? I mean if I have lets say 3 slides (left, middle, right) is it possible to do that when you are on the left side, left arrow disappears and you have to go back to the middle slide. Same thing for the right slide.

Upvotes: 2

Views: 2021

Answers (1)

Nicholas Hazel
Nicholas Hazel

Reputation: 3740

In your options, override the default:

loopHorizontal = true;

Like so:

$(document).ready(function() {
    $('#fullpage').fullpage({
        loopHorizontal: false
    });
});

Additional options can be found at the documentation site:

https://github.com/alvarotrigo/fullPage.js#usage

Upvotes: 3

Related Questions