https://github.com/dennisinteractive/sticky_elements
Patches for https://www.drupal.org/project/sticky_elements - provides context reaction to make any element on the page sticky
https://github.com/dennisinteractive/sticky_elements
Last synced: 10 months ago
JSON representation
Patches for https://www.drupal.org/project/sticky_elements - provides context reaction to make any element on the page sticky
- Host: GitHub
- URL: https://github.com/dennisinteractive/sticky_elements
- Owner: dennisinteractive
- Created: 2018-06-25T15:18:31.000Z (about 8 years ago)
- Default Branch: 7.x-1.x
- Last Pushed: 2018-10-11T14:15:13.000Z (over 7 years ago)
- Last Synced: 2025-08-08T05:47:57.555Z (11 months ago)
- Language: PHP
- Homepage:
- Size: 62.5 KB
- Stars: 0
- Watchers: 35
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sticky Elements
Provides context reaction to make any element on the page sticky
## Requirements
### Sticky Elements JS
https://github.com/dennisinteractive/sticky_elements_js
This is included as a library in the `sticky_elements.make` file.
Please refer to https://www.drupal.org/project/libraries for more details on using libraries.
## Installation
Install as you would normally install a contributed Drupal module. See:
https://drupal.org/documentation/install/modules-themes/modules-7 for further
information.
## Usage
Add the _Sticky Elements_ context reaction and configure:
### Sticky Element
CSS selector of the element to stick
### Type
| Type | Value | Description |
| --------------- | ------------ | --------------------------------------------------------- |
| Trigger element | CSS selector | Stop sticking when this element is reached |
| Offset | Pixels | Stop sticking when this offset is reached |
| Timeout | Milliseconds | Stop sticking when this number of milliseconds has passed |