dixonandmoe / rellax

Lightweight, vanilla javascript parallax library
https://dixonandmoe.com/rellax/
MIT License
7.04k stars 880 forks source link

Laggy Rendering Performance #215

Open Chaoste opened 3 years ago

Chaoste commented 3 years ago

Hi,

thanks for this awesome plugin. I'm using it for two cases on my web page and I sometimes observe a laggy performance. Is there any chance to make it smoother so it doesn't flicker that obviously?

My two use cases:

  1. On this landing page at the bottom of the page: https://freiraum.io/ -> Screencast: https://drive.google.com/file/d/1cYDtIyBr80elXhBRD7lCgLzy43FjCH-S/view
  2. On this sub page at the top of the page: https://freiraum.io/vendor/akalo/ -> Screencast: https://drive.google.com/file/d/1mukljCWQS7J-IUKyH8CkX62fEZ7a_QKy/view

Especially on mobile devices, I and customers observe a flickering performance. I was wondering whether this is related to the rounded pixel numbers so it might make to far steps for smaller scroll steps. I looked at some examples from the README and sometimes observed the same problems on other pages. The best example so far appears to be this one: https://lawsofux.com/

Does anyone have insights on this problem? Greetings, Thomas