Inspired by the slick navigation on Stripe's site, this is a navigation that has a follow along background. We use JavaScript to add/remove classes to handle the toggle. Then we use getBoundingClientRect() to transform a white background as the user moves across each dropdown link.
A Pen by Stan Williams on CodePen.
Demo or fork: https://codepen.io/Stanssongs/full/WNveYvO