如何在React中使用gsap.from()
我正在尝试创建一个交错动画,其中三个点出现,延迟为0.2s 这是我为第一个点编写的代码,它应该从不透明度转到不透明度:1(作为圆圈的默认不透明度为1),但是不透明度保留0,从未更改为1
GSAP. ,{ 持续时间:0.2, 不透明度:0, X:20, 轻松:“ Power.4.easein”, });
I am trying to create a stagger animation where three dots appear with a delay of 0.2s
This is the code I wrote for the first dot, it is supposed to go from opacity:0 to opacity: 1 (as the default opacity of the circle is 1) but the opacity remains 0 and never changed to 1
gsap.from(circle, {
duration: 0.2,
opacity: 0,
x: 20,
ease: "Power4.easeInOut",
});
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为这会解决
I think it will fix