Hi, I'm having some troubles migrating an old TweenMax animation into GSAP 3. I've gone through all my code while following this guide, but I still seem to be having some issues. I think I've found the function causing the issues:
resetTilt() {
if ( !activeTilt.letters ) return;
gsap.timeline()
.to(this.DOM.randLetters, 0.2, {
ease: "power3.inOut",
y: cursor.direction === 'up' ? '-=80%' : '+=80',
rotation: cursor.direction === 'up' ? '-=10' : '+=10',
opacity: 0,
}, 0)
// here
.to(this.DOM.randLetters, MathUtils.getRandomFloat(0.5,0.7), {
ease: "power3.inOut",
startAt: {y: cursor.direction === 'up' ? '80%' : '-80%', opacity: 0},
y: '0%',
rotation: 0,
opacity: 1
}, 0.02, 0.2);
}
This returns me an error of: "Cannot create property 'parent' on string __"....
I'll work on creating a minimal codepen, but I figured I'd post this for the meantime just incase I'm missing something obvious..
Thank you!