Platform
VaultVault
  • Free15
  • Navigation19
  • Buttons9
  • Scroll55
  • Text27
  • Sliders & marquees19
  • Gallery & images67
  • Cursor24
  • Page transitions10
  • Loaders2
  • Backgrounds10
  • UI components33
ButtonsPart of ProButtons
IconsPart of ProIcons
  • Interface Essentials144
  • Social Icons69
  • Payment Badges41
SavedPart of ProSaved
Support
DocumentationDocumentation
MCP serverMCP server
SettingsSettings
VaultLoadersNavbar Dock Loader
Soft Fade TransitionBrowse all 182Solar Eclipse on Scroll
  • Free15
  • Navigation19
  • Buttons9
  • Scroll55
  • Text27
  • Sliders & marquees19
  • Gallery & images67
  • Cursor24
  • Page transitions10
  • Loaders2
  • Backgrounds10
  • UI components33
  • Interface Essentials144
  • Social Icons69
  • Payment Badges41
Sign inSign in

Start free. The code for 15 components, no card needed.

Get 15 free

Navbar Dock Loader

This one is locked. Become a member to open the code for it and the rest of the Vault.

See plansTry the 15 free ones

What you'll need.

Install

  • gsap
  • CustomEase
  • SplitText

Setup

npm i gsapregisterPlugin(CustomEase, SplitText)

More like this

  • Header
  • Hero
  • Counter
  • Dither
  • Split text
  • Canvas

Features.

  • The loading bar becomes the navbar: it rises to the top and stays
  • A solid block wipes over each label and off again, so the words never fade
  • The track fills on a curve that stalls twice, like a real load, with a live percentage
  • Waits at 92% for the page to finish loading (3.5s at most)
  • The loading screen is pulled up behind the bar and the headline rises line by line
  • Cell fills and outlines ride one CSS variable, so the colours stay in CSS
  • window.au.DockLoader.refresh() plays it again
  • Respects prefers-reduced-motion: no loader, the navbar and headline are just there

How to get it right.

Put it first on the page

The root is the hero and the loader in one. It is 100svh tall and the bar docks to its top edge. To keep the bar on screen while the page scrolls, see the FAQ.

Keep the labels short

Each label sits on one line and its block is sized to the words. One or two words per cell is right.

Mark what gets a block

data-dkl-label labels get a block when the bar opens. data-dkl-late is for the track's own link: it stays hidden until the fill has left.

Variations.

  • Longer load — data-au-load-duration="3"
  • Slower rise — data-au-dock-duration="1.6"
  • A beat at 100% — data-au-hold="0.5" waits half a second before the bar rises
  • A different curve — data-au-ease="snappy" (or soft, linear; smooth is the default) changes how the bar rises and the screen clears
  • More curves — data-au-ease also takes expo-out, expo-in-out, windup, drive, kick. windup pulls back first
  • Bar starts lower or higher — --dkl-start: 70 on the root puts it 70% of the way down while loading
  • Different done text — data-dkl-done="Online" on the status label; leave it off and the label stays
  • No dither — remove the <canvas>; the cover is a flat --dkl-cover
  • Your logo — swap the square SVG inside the first label; keep it currentColor so it flips with the cell
  • More copy — anything inside .dkl_hero is revealed with the screen; only data-dkl-title has its own motion

Where it fits.

  • Portfolios and studios — a first load with some ceremony
  • Product launches — the wait hands over to the page in one move
  • Landing pages — where the navbar is simple enough to be four cells

Frequently asked.

Yes, at 92%, until the window load event or 3.5 seconds, whichever comes first. If the page has already loaded it runs straight through.

After the load, the bar is position: absolute at the top of the root. Add .dkl_root[data-dkl-state="done"] .dkl_bar { position: fixed; } to pin it to the viewport.

Set a flag in sessionStorage when it finishes. On later visits, set data-dkl-state="done" on the root and don't load the script.

It is split into lines for the rise. Lines wrap differently at another width, so the first resize puts the plain text back.

Related components.

Pro

Ink Drop Loader

Drag