Forum Discussion
Fix for loss of jQuery and GSAP in new update
Hey all,
If you used to use jQuery and GSAP, it has been removed in the latest update. I've found a work around for anyone that wants to keep using it.
Simply add this code into your slide when timeline starts:
function dynamicallyLoadScript(url) {
var script = document.createElement("script");
script.src = url;
document.head.appendChild(script);
}
dynamicallyLoadScript("https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js");
dynamicallyLoadScript("https://cdnjs.cloudflare.com/ajax/libs/gsap/3.1.1/gsap.min.js");
To target elements on the page which you used to do with:
var obj = $('[aria-label= "obj"] svg');
You now can use:
var obj = $('[data-acc-text = "obj"] svg');
Cheers,
Andrew
Hello And,
Thank you for reaching out and sharing what you are experiencing in your project file.
With your permission, I'd like you to share your project file with our support engineers to investigate what's happening. You can share it privately by uploading it here. It will be deleted when troubleshooting is complete.
- AhmadHabhab-ba6Community Member
Can someone please make a tutorial video on how we add the Jquery to our Projects.
Thanks in advance.
- PhilMayorSuper Hero
The instruction for how to do this are above, add them to a javascript trigger
- HaneenIshaaq-e9Community Member
Thanks! I went through a couple how-tos and this was the one that worked!