Kinetic Progress

A progress bar or ring with an animated fill, a live percentage and an indeterminate mode for unknown waits.

  • <kt-kinetic-progress>
  • Feedback
  • No framework

Kinetic Progress

The code

Copy the Kinetic Progress

Fastest: press Copy on the card above for one complete file. To build it into your own project, use the files below: the markup, the styles, this component’s script and the shared effects script (effects.js) that every component uses.

<kt-kinetic-progress label="Uploading photos" value="68"></kt-kinetic-progress>

<kt-kinetic-progress label="Syncing workspace" indeterminate></kt-kinetic-progress>

<kt-kinetic-progress label="Storage used" variant="ring" value="42"></kt-kinetic-progress>

<kt-kinetic-progress label="Export complete" value="120" max="120"></kt-kinetic-progress>

Attributes

NameWhat it doesDefault
valueCurrent amount, from 0 up to max. Change it to animate.0
maxThe amount that counts as 100%.100
labelText shown above the bar and used as its accessible name.—
variant"bar" or "ring" (a circular SVG).bar
indeterminateUnknown duration: show a sliding or spinning indicator.—

Keyboard and screen readers

  • role="progressbar" with aria-valuemin, aria-valuemax, aria-valuenow and a text value such as "68%".
  • Indeterminate mode drops aria-valuenow, as the ARIA pattern asks.
  • The label names the bar. Reaching the maximum is announced once through a polite live region.
  • The bar is not focusable. With reduced motion the fill jumps and the indeterminate bar is static.

Styling variables

Every look is a CSS variable: --kt-accent, --kt-accent-ink, --kt-radius-btn, --kt-surface-radius, --kt-surface-bg, --kt-border-w, --kt-comp-shadow and --font-sans. The copied file sets them all from your choices.

FAQ

Kinetic Progress: questions answered

How do I use the Kinetic Progress?

Press Copy on the card to get a complete HTML file, or copy the HTML, CSS and JavaScript tabs into your own page. In your markup the element is written as <kt-kinetic-progress>.

Which attributes does <kt-kinetic-progress> accept?

value, max, label, variant, indeterminate. Each one is described in the attributes table on this page.

Is the Kinetic Progress accessible?

role="progressbar" with aria-valuemin, aria-valuemax, aria-valuenow and a text value such as "68%". Indeterminate mode drops aria-valuenow, as the ARIA pattern asks. The label names the bar. Reaching the maximum is announced once through a polite live region. The bar is not focusable. With reduced motion the fill jumps and the indeterminate bar is static.

Can I change the Kinetic Progress colors, corners and font?

Yes. Use the options on this page: accent color, border radius, background, border, shadow and Google font. The copied code already contains your choices, and every one of them is a CSS variable you can edit later.