https://github.com/dennisinteractive/sticky_elements_js
Javascript functionality to make page elements sticky, when defined by a context.
https://github.com/dennisinteractive/sticky_elements_js
Last synced: 8 months ago
JSON representation
Javascript functionality to make page elements sticky, when defined by a context.
- Host: GitHub
- URL: https://github.com/dennisinteractive/sticky_elements_js
- Owner: dennisinteractive
- Created: 2018-07-20T10:21:17.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-10-11T09:42:28.000Z (over 7 years ago)
- Last Synced: 2024-12-28T11:28:26.301Z (over 1 year ago)
- Language: JavaScript
- Size: 142 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sticky Elements JS
Using our native Drupal Module (https://github.com/dennisinteractive/sticky_elements) and the context settings derived from **sticky_elements** at site level. This module provides the javascript that hooks into these elements and adds the logic to track their __start position__, __end position__ and __reset position__, based on **Time**, **Offset** and **Boundary Element** values.
## Sticky Variable
`var stickyElements` is used to define the array of sticky elements.