Jump to content
Search Community

SplitText Fails

YRSantiago test
Moderator Tag

Go to solution Solved by YRSantiago,

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

I'm loading splitText and this happens:


Uncaught TypeError: Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element'.  SplitText.min.js:13


Please help.



EDIT: in firefox:


TypeError: Argument 1 of Window.getComputedStyle does not implement interface Element.
Line 13
Link to comment
Share on other sites

Hm, could you provide at least a simple codepen or something so that we can see what you're doing with your code? It almost sounds like you're trying to call SplitText on the window itself which would be weird. Very difficult to troubleshoot blind, though. We'd be happy to help - just not sure where to go with that limited information and no context. 

  • Like 1
Link to comment
Share on other sites

It's when loaded.


look my console:


LOADED: js/jquery-1.10.2.min.js
LOADED: js/prefixfree.min.js
LOADED: js/gsmin/TweenMax.min.js
LOADED: js/gsmin/utils/SplitText.min.js
SplitText.js:135 Uncaught TypeError: Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element'._split @ SplitText.js:135p.split @ SplitText.js:382pkg.SplitText._globals.SplitText @ SplitText.js:105(anonymous function) @ main.js:6
LOADED: js/main.js
Before anything. I don't call any function (main.js is empty at the moment)
Link to comment
Share on other sites

Taking a stab in the dark here, but it seems curious that it appears that you are loading SplitText.min.js but the error is coming from SplitText.js.


Again, with out some sort of demo that allows us to see this error for ourselves, there is very little we can do.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...