Based on Sticky Kit, see options
    const sticky = new StickyElement( $( '#sticky' ), {offset_top: 20} );
    sticky.init();
            
also methods:
        sticky.detach();
        sticky.recalc();
        
To cancel and to recalculate