As you scroll, the links slide out to the edges and the page gets more room, without anything jumping.
Portfolios and studio sites with a large type-led hero and four nav links or fewer.
Animating width or margin instead of transform, or splitting on every tiny scroll. Trigger it once, past the hero.
<!-- HTML --> <nav class="nav" data-boro-split> <div class="nav-l"><a>Work</a><a>Studio</a></div> <div class="nav-r"><a>Journal</a><a>Contact</a></div> </nav> // JS · GSAP + ScrollTrigger gsap.registerPlugin(ScrollTrigger); const tl = gsap.timeline({ paused: true, defaults: { duration: 0.6, ease: "expo.out" } }) .to(".nav-l", { xPercent: -14 }, 0) .to(".nav-r", { xPercent: 14 }, 0); ScrollTrigger.create({ start: "top+=120 top", onEnter: () => tl.play(), onLeaveBack: () => tl.reverse(), });