Jump to content
GreenSock

andytwoods

elastic connections

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

Not a silly question. That type of effect isn't really a tweening issue - it's more of a physics thing. Tweens have a clearly defined start and end time/value whereas a physics engine is constantly reacting to various forces. 

 

You could certainly use the TweenLite.ticker to drive the updates, but if I were you, instead of trying to do that entire effect using tweens, I'd probably set up a simple update loop containing the physics logic. 

Link to comment
Share on other sites

Hi,

 

Take a look at this:

 

http://www.html5canvastutorials.com/labs/html5-canvas-modify-curves-with-anchor-points-using-kineticjs/

 

Since the engine has a kinetic plugin you could use it with GSAP and some elastic or bounce easeOut in order to simulate that particular effect:

 

http://api.greensock.com/js/com/greensock/plugins/KineticPlugin.html

 

Best,

Rodrigo.

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×