Hi guys,
I'm running into an issue on Safari with a function I've created that uses the _next, and _prev properties on a tween object.
Here's the code:
const copy = new SplitText('.copy-' + i, {type:'chars, words', charsClass:'chars'})
tl.staggerTo(copy.chars, staggerDuration, {onStart: caretForward, onStartParams: ['{self}']}, staggerDuration, label)
function caretForward(tween) {
if (tween._prev) {
TweenMax.set(tween._prev.target, { borderRight: 'none' })
// this removes the caret for the previous character
// tween._prev is always null when called in Safari