-
Notifications
You must be signed in to change notification settings - Fork 43
Closed
Description
It would be possible to create modern style stick-and-hide bars with Patterns if it would place certain classes on the body tag. It doesn't require to be a pattern on its own. More a standard service.
- User scrolls the page up: class
scrolled-up
is placed. - User scrolls the page down: class
scrolled-down
is placed.
The up class will always replace the down class and vice versa.
Additionally, the following classes could help some designs with altering the look (often the height) of the stick-and-hide bar.
- Scroll position is 0: class
scroll-position-top
is placed. - Scroll position is at the bottom of the page: class
scroll-position-bottom
is placed.
Each class of the scroll position classes is removed as soon as the scroll position is no longer respectively the absolute top or bottom.
Metadata
Metadata
Assignees
Labels
No labels