Problems with background image position on Stellar.js

流过昼夜 提交于 2019-12-01 10:46:26

I had the same issue.

In your jquery.stellar.js file change the stellar function so that horizontal scrolling is set to false (its set to true as default).

$.stellar({
horizontalScrolling:false
// rest of function
});
Justinas

Try changing scrollProperty to transform, like:

scrollProperty: 'transform'

That worked for me.

I had the same problem and already had horizontalScrolling:false. Adding scrollProperty: 'transform' resolved the issue for me.

Having the same issue I tried adding

scrollProperty and horizontalScrolling

Though this resulted in my background not being loaded.

Removing both properties and running Stellar like..

$.stellar({}) instead of $.stellar()

(like on the Stellar site)

Parallax is working like a charm.

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