Hello,
Thank it's works :
gsap.to(".dots", <any>{
physics2D: {
velocity: 'random(200, 350)',
angle: 'random(80, 100)',
}
});
I just noticed something with WebStorm.
This doesn't work :
// @ts-ignore
gsap.to(".dots", {
physics2D: {
velocity: 'random(200, 350)',
angle: 'random(80, 100)',
}
});
but this work :
// @ts-ignore
gsap.to(".dots", {
physics2D: {
velocity: 'random(200, 350)',
angle: 'random(80, 100)',
}
}, '<');
I don't understand why.
But nevermind and thank for the support.