标签: reactjs framer-motion
我想从右边稍微移开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});
如何在成帧器运动中做到这一点?
答案 0 :(得分:1)
我可以通过使用两个嵌套的运动div来实现。检查我的沙盒here