• Participate in the forums
  • Get updates on the products you use
  • Learn about exclusive offers and more!
  • Create an account

    Sign In

    I'm shooting blind here, since i cant see your test sites code for context. But maybe the window or the instance of the element your passing to SplitTextPlugin is not available or ready. When you look in the console and network panel do you see the scripts loading before the DOM and or window is loaded and ready?

    maybe the element isnt ready or available? You could try and check the length of the element and make sure it is larger than 0, meaning it exists in the DOM, before doing anything with the element.

    https://developer.mozilla.org/en-US/docs/Web/API/NodeList/length

    “It's shocking the @w3c didn't use @greensock as a model of how to do animation via code. Did they even ask animators what they use?”

    Elliot Geno, @ElliotGeno

    “After searching around the web for alternatives, I found GreenSock to be the most performant.”

    Lamin Sanneh

    “Truly, you folks on this forum are the nicest, least judgmental, helpful people I've ever encountered.”

    @ThePixelPixie

    “Every time a new GSAP plugin is introduced, I'm close to bursting from excitement. The simplicity of the GreenSock API makes learning and applying these tools in projects such a dream.”

    Ryan Mulligan

    “There is no doubt that GreenSock is currently the best available tool for creating astonishing interactive websites and animation effects.”

    Petr Tichy

    “Any time I've struggled to achieve a complex animation in CSS alone, I've never regretted using @greensock 's GSAP. After all these years, and impressive competitors, it's still Best In Class.”

    @perrygovier

    “GSAP is free for most part - the few extra (paid) plugins are a million times worth paying for.”

    Thomas Aufresne, @thomAufresne

    “The depth of GSAP blows me away like all the time. It seems like I stumble on something new and amazing every time I peek at the docs.”

    Adam Kuhn