Hey I have this issue with using javascript to move a relatively positioned element. What I’m trying to achieve is a parallax-like effect where an element moves with the scroll but faster than a scroll. What I get is a choppy flow on some browsers / computers. I assume it should be solvable with better optimisation, but really don’t have an idea hot to do it.
Here is the codepen link - https://codepen.io/maciejgunia/pen/gxQReo
And here is the behaviour observed by me - https://jumpshare.com/v/RhU7gNYAlMFwDo7HIl5Z
Oh, and the element has to be position: relative (needs to obey the overflow: hidden), using fixed solves this issue but creates other so this is a no-go.
Cheers for help.