📜  使最后一个补间无限 gsap - 任何代码示例

📅  最后修改于: 2022-03-11 14:56:21.349000             🧑  作者: Mango

代码示例1
tl_circle12
    .fromTo(crc12, 2, { strokeDashoffset: 0 }, { strokeDashoffset: l, ease: Linear.easeNone }, "round1")
    .fromTo(sball2, 2, { rotation: 0 }, { rotation: -360, ease: Linear.easeNone }, "round1")
    .fromTo(crc12, 3, { strokeDashoffset: -l }, { strokeDashoffset: 0, ease: Linear.easeNone }, "round2")
    .to(sball2, 3, { rotation: -720, ease: Linear.easeNone }, "round2")
    .to(crc12, 0, { stroke: "white", ease: Linear.easeNone }, "round2")
    .to(sball2, 3, { rotation: -1080, ease: Linear.easeNone, repeat: -1 })

add this  repeat: -1