2.0.2 • Published 9 months ago
@frankhoodbs/header-sticky-scroll v2.0.2
Header sticky scroll
A simple utility that returns three reactive boolean variables based on certain scroll positions, to be used in dynamic css classes.
Usage
Import the utility function:
import { cssCustomPropertiesList } from '@frankhoodbs/header-sticky-scroll';
const { pinned, top, bottom } = useReactiveScrollClasses({ userOptions });
To get the tree reactive values that indicate the position relative to the scroller selected
Parameters
Param Name | Type | Description |
---|---|---|
scroller | Ref or Window | The scrollable html element or Window, defaults on window |
offsetTop | number | vertical offset in px before element is first unpinned |
offsetBottom | number | vertical offset in px before element is first unpinned |
2.0.2
9 months ago
2.0.1
9 months ago
1.2.12
10 months ago
1.2.11
10 months ago
1.2.9
12 months ago
1.2.10
12 months ago
1.2.8
1 year ago
1.2.7
1 year ago
1.2.4
1 year ago
1.2.3
1 year ago
1.2.2
1 year ago
1.2.1
1 year ago
1.2.0
1 year ago
1.1.17
1 year ago
1.1.16
1 year ago
1.1.15
1 year ago
1.1.14
1 year ago
1.1.13
1 year ago
1.1.12
1 year ago
1.1.11
1 year ago
1.1.10
1 year ago
1.1.9
1 year ago
1.1.8
1 year ago
1.1.7
1 year ago
1.1.6
1 year ago
1.1.1
2 years ago
1.1.3
1 year ago
1.1.2
1 year ago
1.0.4
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago