我想从右边稍微淡入 div 几秒钟后淡出这个 div
在 gsap 中,这段代码看起来像这样
tl.fromTo(message,
{duration: 0.5, x: "70", opacity: 0},
{duration: 0.5, x: "0", opacity: 1},
).to(message, {duration: 0.5, delay: 2.5, x: "0", opacity: 0});
如何在成帧器运动中做到这一点?
我想从右边稍微淡入 div 几秒钟后淡出这个 div
在 gsap 中,这段代码看起来像这样
tl.fromTo(message,
{duration: 0.5, x: "70", opacity: 0},
{duration: 0.5, x: "0", opacity: 1},
).to(message, {duration: 0.5, delay: 2.5, x: "0", opacity: 0});
如何在成帧器运动中做到这一点?