v1.2
MENU ANIMATIONS
ADVANCED EFFECTS
CORE BACKGROUND
UI SURECART
BUTTONS
SureSticky
Makes any element sticky on scroll with smart responsive behavior. Perfect for keeping product summaries, pricing cards, or add-to-cart buttons visible while users browse long product pages. Automatically disables on mobile for better UX. Zero JavaScript overhead - uses pure CSS position sticky with dynamic style injection.
Position
Distance from the top of the viewport when the element becomes sticky. Accepts any CSS unit like px, rem, em, or vh. Account for fixed headers by matching their height.
Default: 2rem
Stack order of the sticky element. Higher values appear above other elements. Increase if the sticky element gets hidden behind other content.
Default: 10
HTML attribute name used to mark elements as sticky. Add this attribute to any element you want to make sticky. Useful for targeting specific elements.
Default: data-sticky-product
Responsive
Screen width below which sticky behavior is disabled. On smaller screens, elements return to normal flow. Match your theme's tablet/mobile breakpoint.
Default: 768
Turn off sticky behavior on mobile devices. Recommended for better mobile UX since sticky elements can consume valuable screen space on small displays.
Default: On
Appearance
Hides the scrollbar on the sticky element for a cleaner look. Uses cross-browser CSS to hide scrollbars while maintaining scroll functionality if the content overflows.
Default: On
Performance
This element is extremely lightweight - it only injects CSS rules and uses native browser sticky positioning. No JavaScript runs on scroll events. Uses MutationObserver to detect dynamically added elements. Works with any SureCart product layout and plays nicely with other sticky elements on the page.
