next-transition-bar

A lightweight, customizable progress bar for Next.js page transitions. Works with both App Router and Pages Router.

Features

  • Works with App Router and Pages Router
  • Handles middleware redirects (pushState + replaceState)
  • Browser back/forward button support
  • Zero memory leaks — event delegation instead of per-element listeners
  • Customizable color, height, speed, easing, spinner, and more
  • RTL support
  • Optional start delay to avoid flashing on fast navigations