Jump to content
Search Community

Dynamic Properties

ElliotGeno test
Moderator Tag

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

The Flash version used to have a plugin for Dynamic Props which allowed you to continuously update the properties. Is there something like that for the HTML version?

 

Even being able to simply call TweenMax.updateTo(targetObject,.5,{property:newPropertyValue}); would be awesome... The problem is when it completes, you can't call updateTo again. Instead, you need to check to see if it is tweening and call updateTo() or if it stops call to().

 

It would be great if updateTo would simply create a new tween if it already finished.

Link to comment
Share on other sites

Hi Elliot

 

No, there is not a DynamicPropsPlugin for html5 / js.

 

updateTo() is pretty limited in that it isn't designed to work with plugin values, so it isn't great in HTML5 stuff as most values are fed through the CSSPlugin.

 

In most cases it's better to create a new tween than update an existing one.

  • Like 2
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.
×
×
  • Create New...