Vibary.ai
← Vibe Coding

Indeterminate Bar

A slim segment crosses the top edge on a loop for work whose length nobody can predict.

loadingminimalsubtleautomatic · looping · starter · ~1.6s
Variant

The animated component in this preview is rendered from the canonical file shown here. The surrounding demo shell only provides context and is not part of the copied code.

231 lines · react + motion only
import type { ReactNode } from "react";
import { AnimatePresence, motion, useReducedMotion } from "motion/react";

/**
 * Vibary · Indeterminate Bar
 *
 * The honest loader for work whose length nobody knows. A slim segment
 * crosses the top edge on a loop, accelerating out of the left and

About this pattern

The loader you reach for when there is no percentage to report and inventing one would be a lie. A short segment travels the track, leaving the left quickly and easing into the right, with a fainter second segment offset behind it so the track is rarely empty. The track keeps its height whether or not anything is running, so switching the loader on cannot nudge the page. Two rules keep it honest: it never accelerates near the right edge, which would imply a finish line it cannot see, and it stays quiet enough to survive fifty crossings without becoming the most interesting thing on screen.

Export in progressRoute changeBackground jobQuery running

Where it shows up

Screens we drew to show where this motion usually sits. Illustrations, not captures of any product.

  • Ridgeline
    Docs
    Recent
    Shared
    Templates
    Trash
    DocsNew
    Q3 planning notesEdited 14 minutes agoScope
    Document page

    A thin strip runs along the very top of the window while the next view is fetched.

Related patterns