Vibary.ai
← Vibe Coding

Shortcut Teaching Moment

A card rises with the shortcut and presses the keys itself, and the control it operates answers a beat later.

onboardingsubtlefuturisticautomatic · finite · intermediate · ~2.2s
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.

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

/**
 * Vibary · Shortcut Teaching Moment
 *
 * After the same thing has been done the slow way a few times, a card
 * rises with the shortcut and presses the keys itself — the caps sink

About this pattern

The tip that appears once someone has done the same thing the slow way a few times. A small card rises over the surface, and rather than describing the shortcut it performs it: each cap sinks two pixels onto its own fixed base — the way a real key loses its lip — and a moment after the last one lands, the field the shortcut operates lights up. Demonstrating the result is what makes the tip stick; a diagram of two keys does not. The caps are pure transform with no shadow animation and nothing scales, because a legend that grows while being pressed reads as a cartoon. The whole thing repeats once, then stops.

Power-user educationOnboarding flowCommand hintContextual tip

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

    Repeating a mouse action surfaces the keyboard equivalent in a small card.

Related patterns