Vibary.ai
← Vibe Coding

Connection Restored

The offline bar turns green, confirms, and retracts in one continuous move.

feedbackfriendlycalmautomatic · finite · intermediate · ~2.8s
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.

265 lines · react + motion only
import { useEffect, useState } from "react";
import { motion, useReducedMotion } from "motion/react";

/**
 * Vibary · Connection Restored
 *
 * The offline bar earning its exit: it warms to green, says so, and
 * retracts — collapsing and sliding on the same curve, so the whole

About this pattern

Recovery, told as a single gesture. The bar tints from warning amber to confirmation green while the pulsing dot gives way to a tick and the label crossfades in a slot sized to its longer state. After a beat it leaves: the wrapper collapses and the bar slides up on the same duration and the same curve, so the exit reads as one movement rather than a shrink plus a slide, and the content underneath closes the gap without a jump. Reduced motion stills the dot and shortens the exit, but the color and the words still do the work.

Offline mode bannerNetwork recoveryRealtime socket reconnectSync resumed after a drop

Where it shows up

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

  • Ridgeline
    Inbox
    Starred
    Drafts
    Archive
    Sent
    InboxNew
    Contract renewalPriya Raman · 10:14
    Q3 hiring planMarcus Bell · 09:02
    Venue confirmed for ThursdayDana Whitfield · Tue
    Invoice 4821 clearedBilling · Tue
    Weekly summaryReports · Mon
    Inbox

    Offline strip confirms the reconnection before removing itself from the top of the list.

Related patterns