All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Added possibility to define multiple selectors for the relative sticky elements as a JSON object.
- Added
refreshRate
option to determine the speed in which sticky states are refreshed.
- Fixed jumping sticky element when it is the tallest element in the container.
- Improved styles for sticky states inner element to allow the use of nested sticky elements.
- Removed method
public.getInstanceFromContainer
as it does not work in many contexts.
- Improved performance by throttling the changes of state.
- Improved recalculation of sticky state limits when resizing elements and the window.
- Fixed calculation of the end threshold to set the end position of the sticky element.
- Fixed calculation of sticky element offset position that is used to determine when the element gets the "sticky" state.
- Changed function
isStickyPosition
to check for sticky position clues only on the passed element (usingmatches
instead ofclosest
). - Changed exposed function
isStickyPosition
aspublic
.
- Added support for sticky elements relative to other sticky elements.
- Initial commit.