Vibary.ai
← Vibe Coding

Summary Condense

The dropped lines fade out from the bottom up, and only then does the card close the height they held.

aielegantpremiuminteraction · finite · intermediate · ~0.6s
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.

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

/**
 * Vibary · Summary Condense
 *
 * A long passage folding into its summary: the lines being dropped fade
 * out from the bottom up first, and only then does the card close the

About this pattern

Condensing a long passage is a destructive move — words the reader could see are about to be gone — so the order of the two beats is the whole design. The lines being dropped fade first, from the bottom up, while the card is still holding their height; only once they are invisible does the height ease shut and the summary settle into the space. Collapsing first and fading second reads as the card eating the words. Nothing scales: text that pops on the way out makes a summary look like a trick rather than a service.

Summarize a threadCollapse a long documentTL;DR toggleCondensed email digest

Where it shows up

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

  • Summarise the supplier contract and flag anything unusual.
    The renewal runs another twelve months at the same rate, with one clause worth a second look.
    Supplier contract.docxQ3 planning notes
    Ask a follow-up
    AI assistant

    Selected passages fold into a shorter block written in their place.

Related patterns