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
| item-wrapper |`li`| CSS selector | The DOM element which wraps each menu item. This is used to set the "current" and "in-path" classes also on the wrapper element. If empty, no wrapper element is used. |
32
-
| in-path-class |`navigation-in-path`| CSS class name | Class name, which is set on item-wrapper elements if nested menu items are within the current path. |
33
-
| current-class |`current`| CSS class name | Class name, which is set on item-wrapper or items if they are the currently selected menu option or - for hash links - when it's corresponding content item is in view. |
34
-
| current-content-class |`current`| CSS class name | CSS class for a content item when it is the current one. |
35
-
| in-view-class |`in-view`| CSS class name | CSS class for a navigation item when it's corresponding content item is in view. |
36
-
| scrill-item-side |`top`|`top`, `bottom`, `middle`, `auto`| Side of element that scrolls. This is used to calculate the current item. The defined side of the element will be used to calculate the distance baseline. If this is set to "auto" then one of the "top" or "bottom" positions are used, depending on which one is nearer to the distance baseline. |
37
-
| scrill-item-distance |`50%`| CSS length (px, %, vw, vh, vmin or vmax) | Distance from side of scroll box. any amount in px, %, vw, vh, vmin or vmax. This is used to calculate the current item. The nearest element to the distance-baseline measured from the top of the container will get the current class. |
38
-
| scrill-item-visibility ||`none`, `most-visible`| Visibility of element in scroll box. This is used to calculate the current item. If "most-visible" is set, the element which is most visible in the scroll container gets the current class. If more elements have the same visibility ratio, the other conditions are used to calculate the current one. |
| item-wrapper |`li`| CSS selector | The DOM element which wraps each menu item. This is used to set the "current" and "in-path" classes also on the wrapper element. If empty, no wrapper element is used. |
32
+
| in-path-class |`navigation-in-path`| CSS class name | Class name, which is set on item-wrapper elements if nested menu items are within the current path. |
33
+
| current-class |`current`| CSS class name | Class name, which is set on item-wrapper or items if they are the currently selected menu option or - for hash links - when it's corresponding content item is in view. |
34
+
| current-content-class |`current`| CSS class name | CSS class for a content item when it is the current one. |
35
+
| in-view-class |`in-view`| CSS class name | CSS class for a navigation item when it's corresponding content item is in view. |
36
+
| scrill-item-side |`top`|`top`, `bottom`, `middle`, `auto`| Side of element that scrolls. This is used to calculate the current item. The defined side of the element will be used to calculate the distance baseline. If this is set to "auto" then one of the "top" or "bottom" positions are used, depending on which one is nearer to the distance baseline. |
37
+
| scrill-item-distance |`50%`| CSS length (px, %, vw, vh, vmin or vmax) | Distance from side of scroll box. any amount in px, %, vw, vh, vmin or vmax. This is used to calculate the current item. The nearest element to the distance-baseline measured from the top of the container will get the current class. |
38
+
| scrill-item-visibility ||`none`, `most-visible`| Visibility of element in scroll box. This is used to calculate the current item. If "most-visible" is set, the element which is most visible in the scroll container gets the current class. If more elements have the same visibility ratio, the other conditions are used to calculate the current one. |
39
39
| scroll-trigger-selector |`a[href^='#'].scroll-trigger`| CSS selector, `none`| Selects the element within the pat-navigation container that should get a class current while scrolling, when applicable. |
0 commit comments