To implement GSAP ScrollTrigger and TextPlugin together in Webflow, you need to load both plugins correctly and initialize your GSAP animation within the Webflow environment.
https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.2/gsap.min.js
https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.2/ScrollTrigger.min.js
https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.2/TextPlugin.min.js
headline-text
).<script> document.addEventListener("DOMContentLoaded", function () { gsap.registerPlugin(ScrollTrigger, TextPlugin); gsap.to("#headline-text", { scrollTrigger: { trigger: "#headline-text", start: "top 80%", // when element top hits 80% from top of viewport toggleActions: "play none none none" }, duration: 2, text: "Your new animated text goes here!", ease: "none" }); });</script>
To use GSAP ScrollTrigger and TextPlugin in Webflow, load the GSAP libraries via CDN in your project’s Custom Code settings, target elements with IDs or classes in Webflow, and initialize your GSAP animation using ScrollTrigger and text transitions inside an Embed block. Always publish your site to test the result.