Forum Discussion
NathanStoker-c1
4 months agoCommunity Member
This is the webobject code:
(function () {
// Function to load GSAP and Text Plugin
function loadGSAP() {
const gsapScript = document.createElement('script');
gsapScript.src = 'https://cdnjs.cloudflare.com/ajax/libs/gsap/3.11.4/gsap.min.js';
gsapScript.async = false;
document.head.appendChild(gsapScript);
const textPluginScript = document.createElement('script');
textPluginScript.src = 'https://cdn.jsdelivr.net/npm/gsap@3.12.5/dist/TextPlugin.min.js';
textPluginScript.async = false;
document.head.appendChild(textPluginScript);
}
// Call the function to load the libraries
loadGSAP();
})();