CSS background image centered with Stellar JS

旧城冷巷雨未停 提交于 2019-11-30 22:16:39
markdalgleish

You need to disable horizontal parallax. This will cause Stellar.js to leave your horizontal background positioning untouched.

In your example, the updated call to Stellar

$(window).stellar({ horizontalScrolling: false });

I've updated your JSFiddle example with this change: http://jsfiddle.net/wvuQm/5/

Remove the following css

margin-bottom:50px;

add the following script and try

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