问题
I have a sticky element with data-stick-to-bottom however when I refresh the page, it flashes at the top before sticking to the bottom.
Is there a callback or a function to check if foundation is ready?
回答1:
Solved the issue by adding:
$(window).trigger('load.zf.sticky');
Before calling my showBanner function.
来源:https://stackoverflow.com/questions/52971831/foundation-6-sticky-fouc