Vibary.ai
← Vibe Coding

Batch Action Count

Ticking rows rolls a count in a floating bar that rises on the first selection.

feedbackminimalenergeticinteraction · finite · intermediate · ~0.5s
Interactive · click to play
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.

366 lines · react + motion only
import { useState } from "react";
import {
  AnimatePresence,
  motion,
  useReducedMotion,
  type Variants,
} from "motion/react";

About this pattern

Bulk selection told through one number. The first tick raises the action bar from below the fold on a flat spring; every tick after that rolls the count through a clipped slot — upward when you add, downward when you take one away, so the direction of the change is visible without reading the digit. Clearing the selection drops the bar the way it came, faster than it arrived. The type size never changes and the slot is sized in character units, so double digits do not shove the actions sideways.

Bulk actions in a tableInbox multi-selectFile manager selectionModeration queue

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

    Selecting messages swaps the header for a bulk action row with a live count.

Related patterns