I've been trying this every possible way, and I can't figure out how to code it correctly?
function bodyAni(speed){
let tl = gsap.timeline(
{
// bodyAni:timeScale(speed)
// defaults: {
// timeScale: speed
// }
} )
tl.timeScale( speed )
// timeline I'm animating, for instance:
.to("#catfish", { rotate: "random(-5, 5)", yPercent: "random(-5, 5)", xPercent: "random(-5, 5)", repeatRefresh: true, yoyoEase:true, duration: 10, repeat:-1 }, 0)
return tl
}
The last o