Here's what I did:
- Instead of Wrapping the lines in DIVs, I used the splittext twice and give the outer split the class of line-wrapper. Then simply use the code by @OSUblake and @GreenSock which worked flawlessly.
Here's the codepen:
See the Pen VwMMgpQ by alexjain (@alexjain) on CodePen
But but, I have another issue now. For some reason, on production, I am getting the following error. Anyone who have any idea?
the code snippet it is referring to is (I have added a comment in Codepen to both these lines):