Forum Discussion

XavierBourgu139's avatar
XavierBourgu139
Community Member
8 months ago

gsap rotationY moving object to 0,0 position on slide

Hi everyone,

I have started using gsap, and I am looking at flipping a card when it gets clicked. As you can see in .story file, the front card flips 90 degrees as expected, but the back card, which does flip also 90 degrees, does so at a different position on the slide than it was when it started, which baffles me. I have obviously ommited something or my javascript has a bug, but we're talking about 6 lines of code all together.

Could one of you wonderful people take a look at my file and maybe point me in the right direction?

Thank you