Typescript show this error
Type '(index: number) => { cx: string; cy: string; }' is not assignable to type 'AttrVars'.
Index signature for type 'string' is missing in type '(index: number) => { cx: string; cy: string; }'.
Hello guys,
How can I transform this to GSAP 3 ?
tl.staggerTo(['.sun', '.moonMask', '.moon'], 1, {
cycle:{
attr:[{cx:'-=140', cy:'-=20'}, {cx:'-=140', cy:'-=20'}, {cx:'-=90', cy:'-=0'}]
}
},0)