I'm using the SplitText plugin and have run into so many issues. Here is the code I'm using:
// split and animate the text
const split = new SplitText(this.refs.message, { type: "chars, lines" });
//targets, duration, vars, stagger, onCompleteAll, onCompleteAllParams, onCompleteAllScope
TweenMax.staggerFrom(split.chars, 0.2, {
autoAlpha: 0,
scale: 3,
delay: this.props.delay || .3,
onComplete: () => { } },
0.022,
this.typingComplete.bind(this)
)
1. Performance is terrible, especially when anything else is happening on the page.
2. It frequently stops, then janks ahead several words in a very jarring way.
3. It sometimes orphans single letters onto the next line
4. It causes horizontal scrollbars when they're not needed
Anything I can do to solve these issues?