From 5509ca2e904f65e159c2a1c261aa409751a85023 Mon Sep 17 00:00:00 2001
From: rahim
3.96s / - 722 KB + 200kB
@@ -55,9 +59,9 @@ const seconds = [0, 5, 10, 15, 20];
- 1.29s + 0.75s / - 198 KB + 38kB
diff --git a/site/src/styles/globals.css b/site/src/styles/globals.css index e93d0aa5..2f28f3ec 100644 --- a/site/src/styles/globals.css +++ b/site/src/styles/globals.css @@ -215,10 +215,11 @@ @utility data-bar { height: 2.5rem; + width: var(--data-bar-width, 100%); background-image: url("/data-bar-white.svg"); background-repeat: repeat-x; background-size: auto 100%; - animation: grow-bar 1.5s ease-out forwards; + animation: grow-bar var(--data-bar-duration, 1.5s) ease-out forwards; animation-play-state: paused; [data-animate] & { @@ -322,7 +323,7 @@ width: 0%; } to { - width: 100%; + width: var(--data-bar-width, 100%); } }