Great thx! Based on another post, I think it should be:
gsap.utils.toArray(".cir").forEach((itm) => {
gsap.to(
itm, {
duration:"random(1, 5, 1)",
rotate:"random(-360, 360, 10)",
repeat:-1,
repeatRefresh:true,
ease:"none",
transformOrigin:"center",
onRepeat: function() { this.duration(gsap.utils.random(1, 5, 1)) }
}
)
});
Otherwise, the duration will remain the same for each repetition (as you pointed out from the documentation).