Vibary.ai
← Vibe Coding

Receipt Unroll

The payment clears and the receipt unrolls beneath it, line items settling in behind the torn edge.

commercepremiumfriendlyautomatic · finite · intermediate · ~1.4s
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.

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

/**
 * Vibary · Receipt Unroll
 *
 * The payment clears and the receipt unrolls beneath it: the paper grows
 * downward on an eased height tween, the torn edge travels with it, and

About this pattern

The screen a shopper actually reads after paying. A badge lands on the header the moment the card clears, then the paper unrolls downward on an eased height tween with its torn edge riding along the bottom, and the line items settle in a short cascade behind it. The unroll is a real size change so it tweens rather than springs — paper that bounces open reads as elastic. Only the badge is allowed a soft landing; every figure on the receipt holds one type size from the first frame to the last.

Post-payment receiptOrder confirmation screenPurchase summary after a card clearsReceipt reopened from purchase history

Where it shows up

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

  • 10:15
    Order confirmedRidgeline Supply · order 4821
    Ridgeline GTBone · US 9 · Qty 1$132.00
    Merino crew sock, 2-pack$24.00
    Shipping$0.00
    Tax$13.65
    Total$169.65
    Track order
    Order receipt

    The post-purchase screen builds its summary lines under a cleared-payment header.

Related patterns