--- url: /reference/items/Timer/examples.md --- # Examples ## Looping progress bar `TimerProgress` emits a bubbling `timer-progress` event on every animation frame. A single routing [`Action`](/reference/items/Action/) on an ancestor catches it and forwards the ratio to a [`DataBind`](/reference/items/DataBind/) that lives in a separate subtree — so the progress bar and the timer never need to share an element. Hovering the label pauses the countdown, and the bar freezes with it. :::code-group ```js import { registerComponent } from '@studiometa/js-toolkit'; import { Action, DataBind, TimerProgress } from '@studiometa/ui'; registerComponent(Action); registerComponent(DataBind); registerComponent(TimerProgress); ``` :::