Hi,
I am having performance issues with an animation and am hoping that someone could possibly shed some light on why this is not working smoothly. I am trying to scale an image (an SVG) as the user scrolls the page, and then animate in some elements on top of the image once it is scaled. Whilst the animation works, it is extremely jittery on certain devices, namely Chrome on MacOS (possibly due to the retina display).
I have put together an example CodePen here:
https://codepen.io/joao-azevedo-hydradev/pen/oNzqKdx
The CodePen does perform better than our actual site but this is probably because the assets are slightly larger (have more detail in them), nevertheless, you should still be able to see the ‘jitteryness’ in this CodePen. Can anyone suggest how I can improve the performance of this animation? If it is already as optimized as it can be, would canvas be a better option and if so, can you recommend a suitable library? Should we be looking at PixiJS? Thanks in advance, João