An open API service indexing awesome lists of open source software.

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.

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.