可以参考 framer-motion 的 scroll animation 这一章节的文档,有非常多的 examples 应该有你需要的东西。https://www.framer.com/motion/scroll-animations/
准备好固定高度容器(这个可以是已知的),然后其它模块更具滚动条位置进行定位+缩放+其它操作