Vibary.ai
← Vibe Coding

Personal Record

The newest column overtakes the best-ever marker, which rides up on it while the beaten mark drops away as a reference.

achievementenergeticpremiumautomatic · finite · advanced · ~1.5s
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.

372 lines · react + motion only
import { useEffect, useRef, useState } from "react";
import {
  animate,
  motion,
  useMotionValue,
  useMotionValueEvent,
  useReducedMotion,
  useTransform,

About this pattern

A new best, shown as an overtake rather than an announcement. The latest session rises to its value and the best-ever marker is carried up on top of it the moment it is passed — the marker's height is the value, so the line and the figure beside it physically cannot disagree with the data or arrive a beat apart from it. The mark that was beaten is not deleted: it fades in as a dashed reference, drops a few pixels and stays, because a record only means anything next to the thing it beat. No springs anywhere. A measurement that overshoots is a number the person did not earn, so the climb is a decelerating tween that stops exactly where the result stops, and the figure counts on the same value without ever changing size.

New longest run or rideBest sales week on recordFastest build timeHigh score beaten

Where it shows up

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

  • 10:15
    Today
    412 kcalMove8,240Steps9 hrsStand
    HomeSearchActivityProfile
    Activity summary

    A session summary calling out a new best against the previous mark on the same axis.

Related patterns