Vibary.ai
← Vibe Coding

Secure Checkout Badge

A lock strokes itself shut and the payment fields firm up behind it.

commercepremiumcalmautomatic · finite · starter · ~0.9s
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.

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

/**
 * Vibary · Secure Checkout Badge
 *
 * The shackle strokes itself shut, the body lands under it, and only
 * then do the payment fields firm up and accept input. The order is the

About this pattern

The payment step coming up ready. The shackle strokes along its own path, the body lands under it, and the fields firm up only after — the order is the claim, because a form that becomes usable at the moment the lock finishes is reporting a state rather than decorating one. The fields were always laid out and simply gain opacity, so nothing reflows as they become usable, and the status line swaps wording inside a fixed-height slot. A security affordance that bounces undercuts the thing it is asserting, so every settle here happens once.

Payment form ready stateSecure connection reassuranceCard entry stepTrust badge on checkout

Where it shows up

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

  • 10:15
    Payment
    Card number4242 4242 4242 4242Name on cardN. Bergström
    Expiry04 / 28CVC•••
    Subtotal$156.00Shipping$0.00Tax$13.65Total$169.65
    Pay $169.65
    Checkout

    Card fields mount inactive and firm up once the secure frame has loaded.

Related patterns