From 2f6fd8188602c1516e40e5f3563aac59639e0b25 Mon Sep 17 00:00:00 2001 From: Nick Piscitelli Date: Sat, 10 Nov 2018 09:03:09 -0500 Subject: [PATCH] Adding scrollLock option to docs Removing fractional slides (again). This might need a larger overhaul to support properly. A lot of unexpected edge cases rearing themselves --- docs/index.html | 59 ++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 56 insertions(+), 3 deletions(-) diff --git a/docs/index.html b/docs/index.html index 8e96c6d..db62605 100644 --- a/docs/index.html +++ b/docs/index.html @@ -162,7 +162,7 @@

Single Item

 						
-							new Glider(document.getElementById('glider'), {
+							new Glider(document.querySelector('.glider'), {
 								slidesToShow: 1,
 								dots: '#dots',
 								arrows: {
@@ -332,6 +332,53 @@ 

Responsive Settings

+
+

Scroll Locking

+
+
+
+
+

1

+

2

+

3

+

4

+

5

+

6

+

7

+
+
+
+
+ + +
+ + +
+						
+							new Glider(document.querySelector('.glider'), {
+								slidesToShow: 1,
+								scrollLock: true,
+								dots: '#dots',
+								arrows: {
+									prev: '.glider-prev',
+									next: '.glider-next'
+								}
+							});
+						
+					
+
+

Add/Remove Items

@@ -768,7 +815,7 @@

Getting Started

Settings

-
    +
    • slidesToShow
      Type: number
      @@ -805,6 +852,12 @@

      Settings

      A custom easing function may be provided. All functions from the standard jQuery easing library are supported.
    • +
    • + scrollLock
      + Type: boolean
      + Default: false
      + If true, Glider.js will scroll to the nearest slide after any scroll interactions. +
    • duration
      Type: number