next.js - GSAP scroll triggered stacking animation in a sticky container - Stack Overflow

I'm trying to recreate an animation with GSAP in Next.js, where the WhoWeInvestIn container remain

I'm trying to recreate an animation with GSAP in Next.js, where the WhoWeInvestIn container remains sticky when scrolled into view. As the user continues scrolling:

The scattered cards on each side animate towards their respective sides, leaving 30% of each card visible. Once this animation completes, green cards slide into view one by one, stacking on top of each other until the last card is fully visible. Can this be achieved with GSAP and Next.js? If so, what would be the best approach to structure this animation? If not, how best should i approach this?

I've attempted manually controlling the x and y postions depending on the height of WhoWeInvestIn container but the animation becomes too fast and visually unappealing

A sample can be seen here: /

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744789793a4593843.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信