Skip to content

hd-equalizer

Live preview

<hd-equalizer playing="{{ cap.speaker_playing }}" size="24px"></hd-equalizer>

Attributes and example

hd-equalizer

Small equaliser bars that dance while a media player plays and settle low when it pauses. Reduced motion and e-ink: still, at play heights.

AttributeWhat it is
playingWhether it plays. Or a live capability of any device, followed: {{ settings.x.cap.onoff }}.
sizeWidth and height (CSS), e.g. 18px.Default 18px.
<hd-equalizer playing="{{ cap.speaker_playing }}" size="24px"></hd-equalizer>

Styling

Set CSS variables on the component element. Its internal elements live in Shadow DOM; only the exposed named parts can be styled with ::part.

--hd-ease-out
The easing of most movement.
--hd-motion-base
An ordinary change, like a value sliding.
--hd-motion-tempo
CSS input read by hd-equalizer.

Style the host

hd-equalizer {  --hd-accent: #2563eb;  max-width: 100%;}
Theme variables