Ledger

Operating account

19.9%

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/card-ledger

About this component

A balance card set in mono type on hairline bands. Run the pointer along the thin coral bars and the large figure rolls digit by digit to that point; switch the range and the bars grow again from the baseline.

Triggers

  • Hover
  • Mouse tracking
  • State change
  • Click
  • Card
  • Delay stagger

Techniques

  • Text animation
  • CSS transition
  • Keyframes
  • Transition delay stagger
  • Event position
  • CSS variables
  • Pseudo elements

Difficulty

Intermediate

Accessibility

Keyboard and screen readers

The range tabs are native radios whose labels name the span ("Range: six months"). The chart is a focusable role="slider" with aria-valuenow and an aria-valuetext giving the point's date and balance, so arrow keys, Home and End read it out. The rolling digits are aria-hidden and the figure carries the full amount as its label.

Reduced motion

The digits and bars change without rolling or growing.

Use it in anything you build, commercial and client work included. Licence

More cards

See all

Workspace

No command matches

PaletteGet code

Low Sun

Ora Vale

PlayerGet code

Delete workspace

northwind
PurgeGet code

New checkout

Rolling out
RolloutGet code