Archived topic
Use barba.js and GSAP
3 replies · Started by Antonio on May 13, 2021
Hi,
I am using the barba.js and Gsap (GreenSock) script in the development of my new website.
I've already managed to get it working, however, for example if you click on Menu> Blog and an article, it's ok, however in the end clicking to return to the Home does not load well and I have problems with the slider.
check here: https://novo.minerva-online.pt
Can you help me?
Thanks
Hi there,
the only issue i can see is this error in the console:
ReferenceError: Can't find variable: SplitText
which relates to this line of code:
const splitLines = new SplitText('#split-me', {
type: "lines",
linesClass: "line line++"
});
Its there on initial load of the site but may be fired after the other code so its not 'breaking' code that may be fired after it. On return to the home page however that code may be stopping the other scripts from loading.
In other words - begin by fixing that error :)
Hello David,
thanks for the alert, but it is not related. I remove the error but everything remains the same.
Best
Not much else advice i can offer - if i (try to) run a performance report in developers tools i see a real Long Task running - which is probably the blocking the browser from doing anything else during that time.
Its not something i can help with unfortunately as its not theme related and its out of our scope.