How to run a callback inside animation in AnimeJS

521 Views Asked by At

Does anybody know how to run a custom code inside of animation in animejs? I know that there is a 'run' callback (but it runs code not counting the time offset) For example, in gsap there is a 'call' function, where you can run a custom function with given delay.

1

There are 1 best solutions below

0
On

Just found the solution It was really trivial)

.add({
        targets: planet,
        begin: function (){ playPlanet()}
    }, 3100)