最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

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

programmeradmin0浏览0评论

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: /

发布评论

评论列表(0)

  1. 暂无评论