Hey everyone,
I'm stuck with ScrollMagic and SplitText. I'm using SplitText for many classes. I need to replicate the same function all over again in the same page.
All the other animations are fine, except for SplitText.
splitTextBody = new SplitText(".split-text-body", {type:"words"}),
wordsbody = splitTextBody.words;
$('section').each(function(){
var textBlock = new TimelineMax();
textBlock.add(TweenMax.to($(this).find('.underline-body'), .75, {x:0, ease:Expo.easeOut}))
.add(TweenMax.staggerFrom($(this).find(wordsbody), 0.8, {opacity:0, y:"100%", ease: Expo.