Brendan8c
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by Brendan8c
-
-
@1-greensock Thanks a lot! 🤗
I spent 2 days trying to find the answer.
You also helped me a lot by providing a solution! 😊
I don't understand just one thing.
I set (repeat: -1,) the animation continues indefinitely.
But when the ball bounces back, it reappears at the spawn point and plays the animation again.
And how to make it so that it jumps indefinitely? Pushing away from the walls.
as in similar answers -
49 minutes ago, OSUblake said:
Welcome to the forums @Brendan8c
Normally I would advise against animating the transform attribute like that, and just use GSAP properties like
x
,y
, androtation
, but I didn't want to mess the animation as it already works.Also, here's the Migration Guide for v3.
Yes, thank you, you helped me.
I've tried setting properties like x, y, and rotation, but the animation behaves differently.
gsap.to('.blob', { duration: 2, x: "random(50, 0.1)", y: "random(20, 0.8)", rotation: "random(-0.1, -0.8)", ease: Linear.easeNone, repeat: -1, repeatRefresh: true })
-
How to convert the given TweenMax code to gsap 3?
I tried changing it but it didn't work for me.
I will be glad if you help me with this.See the Pen bGqWYje by brendan8c (@brendan8c) on CodePen
Bounce against the wall using Tweens
in GSAP (Flash)
Posted
Yes, that's exactly what I wanted!
I can't thank you enough 💜