Sorbet

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/card-sorbet

About this component

An ambience mixer in frosted colour glass: four panes for rain, fire, waves and wind, each with one soft filled glyph in its own hue and a light inside the milky glass that behaves like its sound. Rain falls in fine streaks, fire flickers low and warm, the sea swells and slides, wind crosses in pale bands. Press a pane to switch it on or off and drag up or down on it to set its level; the light stands higher and brighter in the glass, and the whole panel takes a soft tint from whatever is playing.

Triggers

  • Card
  • Click
  • Hover
  • State change
  • Glow
  • Gradient
  • Ambient
  • Continuous

Techniques

  • @property
  • CSS variables
  • CSS transition
  • Keyframes
  • Gradient
  • Radial gradient
  • Filter
  • Pseudo elements
  • Event position

Difficulty

Advanced

Accessibility

Keyboard and screen readers

A section labelled Ambience mixer. Each pane is a native button with aria-pressed and a label that names the sound and its level (Rain, 72 percent, or Wind, off). Space or Enter toggles it, the up and down arrows step the level by 10, and a vertical drag sets it with pointer capture. A visually hidden polite live region announces every change. The lights and glyphs are aria-hidden. The card plays no audio.

Reduced motion

The lights stand still at their levels, and the level changes, the tint and the hover lift are cuts.

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

More cards

See all

Walk

4,152steps

StrideGet code
Nova
Receive48
Kite
SwapGet code
TearGet code
AirGet code