ap.fullPageSwipeLoop.js
Based on fullPage but make it swipes more smooth and loop-able.
Usage
As you can see the swipeloop.html file in the example files, you will need to include:
-
jQuery library. (1.6.0 minimum)
-
The JavaScript file
ap.fullPageSwipeLoop.js
(or its minified versionap.fullPageSwipeLoop.min.js
) -
The css file
ap.fullPageSwipeLoop.css
###Required HTML structure
In order to create a landscape loopable slider within a section, each slide will be defined with another div
. Besides, another 2 slides should be duplicated from the original first and last slide div and seperately copied after the original last one and before the original first one. Like this:
You can see a fully working example of the HTML structure in the swipeloop.html
file.
###Initialization
All you need to do is call the plugin inside a $(document).ready
function:
A more complex initialization with all options set could look like this: