sticky_offset_selector
.sticky_offset_selector
can automatically calculate the dynamic height of a specific element, the sticky_offset
can offset a specific pixel value manually. You may choose to use that instead if you need an absolute value. Ideally, the two props are not used in tandem.{% include '@bolt-components-navbar/navbar.twig' with {
sticky_offset_selector: '#js-sticky-target', // Adds the height of the other sticky element to the top position of the sticky navbar.
...
} only %}