add motion to progress

This commit is contained in:
2026-10-30 10:40:23 +07:00
parent c0aa186d12
commit 51137b1467
2 changed files with 7 additions and 6 deletions
+3 -1
View File
@@ -97,7 +97,9 @@ impl RenderOnce for Progress {
.bg(ramps.primary.base)
.with_animation(
"indeterminate",
Animation::new(Duration::from_millis(1500)).repeat(),
Animation::new(Duration::from_millis(1500))
.repeat()
.with_max_fps(30.),
|pill, delta| pill.ml(relative(delta * 0.7)),
)
.into_any_element()