You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`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. |
52
+
|`trigger`|`click`|`click`, `auto`|`auto` means that the scrolling will happen as soon as the page loads, additional to `click` events. `click` means that the configured element needs to be clicked first. |
53
53
|`direction`|`top`|`top`, `left`| The direction in which the scrolling happens. |
54
54
|`selector`|`top`, `bottom`, 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. |
55
55
|`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. |
0 commit comments