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.
Just found the solution It was really trivial)
.add({
targets: planet,
begin: function (){ playPlanet()}
}, 3100)