For my Angular animation function, I am passing 2 arguments but encountering an error indicating that 3 are being provided.
startAnimation() {
setTimeout(function() {
const synergy16 = new bofAnimate('synergy-16', {
type: 'oneByOne',
duration: 900
}, function(synergyLogo16: any) {
logoAppearsBeforeItDraws(synergyLogo16, "synergy-16");
});
}, 4000);
}
Error
expected 2 arguments but got 3. function logoAppearsbeforeItDraws(arg1: any, arg2: any): any
expected 2 arguments bot got 3 (parementer) synergyLogo16: any
Despite providing only 2 arguments, I am confused by these errors. Any insights?