1.2.8 • Published 1 day ago
@frankhoodbs/header-sticky-scroll v1.2.8
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 |
1.2.8
1 day ago
1.2.7
1 day ago
1.2.4
2 days ago
1.2.3
6 days ago
1.2.2
19 days ago
1.2.1
22 days ago
1.2.0
23 days ago
1.1.17
23 days ago
1.1.16
2 months ago
1.1.15
2 months ago
1.1.14
2 months ago
1.1.13
2 months ago
1.1.12
3 months ago
1.1.11
3 months ago
1.1.10
4 months ago
1.1.9
4 months ago
1.1.8
4 months ago
1.1.7
4 months ago
1.1.6
4 months ago
1.1.1
4 months ago
1.1.3
4 months ago
1.1.2
4 months ago
1.0.4
7 months ago
1.0.1
7 months ago
1.0.0
7 months ago