Thx elegant for the tip
Tank you a lot Zach for your help! I understand more the logic behind. But I still don't understand why you put the creation of the split inside the loop? I mean, var outerSplit = new SplitText($('.titles'), { type: 'lines' }) automatically split the lines for all the elements with the class titles no? Another problem I have is that the the xOffset is not working well. It look like the stagger made the line not to fully translate at -100%
On my codepen code, often it's fine tho but sometime I get the bug too
, as well as your code pen.
There is also the onComplete method that is not triggered when the animation is complete