Foundation 6 sticky FOUC

岁酱吖の 提交于 2019-12-13 04:22:35

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!