From b44223eb2625a03c511b18fbb1b0b49f70cb271d Mon Sep 17 00:00:00 2001
From: "Cornelis G. A. Kolbach"
Date: Thu, 14 May 2020 11:41:42 +0200
Subject: [PATCH 1/2] Demo page for #721
---
src/pat/scroll/documentation.md | 2 +-
src/pat/scroll/index.html | 4 +++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/pat/scroll/documentation.md b/src/pat/scroll/documentation.md
index 1fd0a9c79..14ac12f54 100644
--- a/src/pat/scroll/documentation.md
+++ b/src/pat/scroll/documentation.md
@@ -51,5 +51,5 @@ The available options are:
| ----- | ------- | ----------- | ----------- |
| `trigger` | `click` | `click`, `auto` | `auto` means that the scrolling will happen as soon as the page loads. `click` means that the configured element needs to be clicked first. |
| `direction` | `top` | `top`, `left` | The direction in which the scrolling happens. |
-| `selector` | | A CSS or jQuery selector string. | A selector for the element which will be scrolled by a number of pixels equal to `offset`. By default it will be the element on which the pattern is declared. Ignored unless `offset` is specified.|
+| `selector` | `top`, CSS selector| A CSS or jQuery selector string or 'top'. | A selector for the element which will be scrolled by a number of pixels equal to `offset`. By default it will be the element on which the pattern is declared. Ignored unless `offset` is specified.|
| `offset` | | A number | `offset` can only be used with scrollable elements. (An element is "scrollable" if it has scrollbars, i.e. when the CSS property `overflow` is either `auto` or `scroll`.) The element scrolled by `offset` can be specified with the `selector` option. If `selector` is not present, the element on which `pat-scroll` is declared will be scrolled. |
diff --git a/src/pat/scroll/index.html b/src/pat/scroll/index.html
index 1d542ea95..13db93c8d 100644
--- a/src/pat/scroll/index.html
+++ b/src/pat/scroll/index.html
@@ -88,7 +88,9 @@ 3
- Back to top
+ Back to top