Problems with background image position on Stellar.js

前端 未结 4 1774
臣服心动
臣服心动 2021-01-15 12:35

I\'m using stellar.js to add a parallax effect to a vertical scrolling website, but I\'m having problems with the background positions. When I use the class \"data-stellar-b

4条回答
  •  星月不相逢
    2021-01-15 13:29

    Try changing scrollProperty to transform, like:

    scrollProperty: 'transform'
    

    That worked for me.

提交回复
热议问题