Seamless Pagination Issue with existing .JS

Hello!

I’m hoping someone might have a solution to my problem here on this site.

I have implemented the seamless pagination code as referenced in this post here by @ forresto.

It’s working great, but one problem being when a new pagination is initialized, it breaks my hero .JS from loading until the page is refreshed.

I have also included his code that is supposed to fix interactions, but that didn’t do anything for me.

Any help is much appreciated! Thank you.


Here is my site Read-Only: https://preview.webflow.com/preview/epistemix?utm_medium=preview_link&utm_source=designer&utm_content=epistemix&preview=484da201a76237152f73647e76ec53de&mode=preview