Jump to content


tl.addCallback is not a function

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

I try to add a callback to my timeline


but always get an error that addCallback is not a function...any ideas?

Link to comment
Share on other sites

Hi nofear87  :)


pls check this out and fork the codepen if still have any problem :


See the Pen QjKEgP by MAW (@MAW) on CodePen


thanks but I implement it in the same way... and still the same error.

tl.call(updateSceneData, null, 20);

this for example works for me.


Edit: But there the problem is, that the absolute positioning did not work.

Link to comment
Share on other sites

you should to use one of these methods :

// .addCallback( callback:Function, position:*, params:Array, scope:* ) : TimelineMax

//.call( callback:Function, params:Array, scope:*, position:* ) : *

See the Pen QjKEgP by MAW (@MAW) on CodePen

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