Forum Discussion

JoshuaThian's avatar
JoshuaThian
Community Member
4 hours ago

Help with javascript and GSAP

Hi,

I'm looking to do a card flip animation using javascript and GSAP.

However upon clicking my card, the card resets to the top left position of the player.

Seems like my gsap.set is causing the issue.

Refer to attached project for error.

 

Anyone can point out what is wrong with my code?

Thank you.

No RepliesBe the first to reply