Hello,
So, I'm using WordPress with a purchased theme, and they do use GSAP 3.6.1. When I try to import ScrollSmoother, it throws an error:
Uncaught TypeError: Cannot read properties of undefined (reading '_getVelocityProp')
Which, from my research, means version mismatch. I tried editing the theme files to remove the old GSAP version and put the most recent one, but other errors appear, making it really hard to make it work (Also, by removing the old GSAP code from the theme, the ScrollSmoother did work, hence I know is a version mismatch problem).
As shown in the print, the ScrollSmoother is not using GSAP from the CDN, is using the theme file "plugins.js". Is there any way you guys know of where I can keep the theme files untouched and "force" the ScrollSmoother to function with the newest version of GSAP (let the theme use their own, and I import the most recent one)?
If thats not possible, is there anywhere I can get the "ShockinglyGreen" suit of scripts on version 3.6.1 (I only found GSAP 2 Archive for download) so that I can work on this project without further problems from the theme?
Thanks in advance