Jump to content
Search Community

Zero duration tweens have no 'onUpdate'

jamiejefferson 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

Just wanted to double check that this was an intended behaviour

See the Pen damGA by jamiejefferson (@jamiejefferson) on CodePen

// foo is never called, even though target.value is set to 100
TweenLite.to(target, 0, { value:100, onUpdate:foo });

It's an edge case I've only ever encountered once (duration is variable, and sometimes I'd like to set it to 0 for instant changes). It's a bit of a fiddly one, but very simple to workaround for me though, so I'm not really asking for changes to accommodate it (unless there's supposed to be an update event here).

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...