Change top offset margin for SnapPoint JQuery plugin with Fixed menu

北城以北 提交于 2020-01-05 08:37:31

问题


I am using the SnapPoint plugin from https://github.com/robspangler/jquery-snappoint and it works well. But i have a fixed menu container of 120px on the top so everytime the slide snaps to the top, it gets hidden behind the menu.

On the authors website, he mentioned a while ago that to overcome this issue padding-top: could be used, but my design does not allow using the padding-top solution.

Is there another non-css way to hardcode the offset via JQuery to 120px when it snaps ?

Thanks in advance

来源:https://stackoverflow.com/questions/21749138/change-top-offset-margin-for-snappoint-jquery-plugin-with-fixed-menu

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