Hi @Rodrigo
Thank you for taking the time to reponds and mentioning Observer Plugin, I know there are a lot of questions in the forum.
You're example is excatly what I was asking and looking for, so this is much appreciated. However I forgot to add one more detail, that what if you have content after your canvas animation?
My thought process is you have a hero section with your product animation but after that you have new sections describing a product or just regular content you miss the animation since the scroll takes you down the page. The canvas animation playing nicely when beeing on fixed position, in the current example.
I have forked your demo, and added some dummy content under it. If this is out of scope of the forum I totally understand, I just feel this maybe will help others that are looking to achieve something similar.
https://codepen.io/tamasmoroz/pen/xxzPRqY