Hi, im using split text, this is my code:
var tl = new TimelineLite({delay:0.9}),
mySplitText = new SplitText(jQuery('.st1'), {type:"words,chars"}),
chars = mySplitText.chars; //an array of all the divs that wrap each character
TweenLite.set(jQuery('.st1'), {perspective:400});
jQuery('.st1').css("opacity","1");
tl.staggerFrom(chars, 0.8, {opacity:0, scale:0, y:80, rotationX:180, transformOrigin:"0% 50% -50", ease:Back.easeOut}, 0.01, allDone);
function allDone(){
mySplitText.revert();
}
And it is giving me this error:
Uncaught TypeError: Object [object Object] has no method 'getElementsByTagName'
on splittext.min.js
I know it has to be something silly but i just cant see it.
A fresh eyes on the problem could help me.
Thank you.