an svg logo that starts off in the middle of the page and shrinks (reduce the spacing) the more you scroll down and then eventually goes into navigation bar and snaps to form the main nav bar logo. I've seen such being done with GSAP but don't know how to.
Awesome idea, thanks for the inspiration. To avoid seeing a misalignment in the progress bar, even though the middle element is centered, or it even not reaching 100% at all, here is my solution. Remove the progress bar animation completely and work with the onUpdate callback function in the scrollTrigger of scrollTween to couple the width with the animation progress: ---- ..., scrollTrigger: { ..., onUpdate: (self) => { mask.style.width = Math.min(self.progress * 100, 100) + "%"; } } ---- Hope it helps
what I always love about this kind of tutorials is that the video's lenght is about 15 minutes and it takes me like few days to apply it to my project hahaha thanks for the work!