diff --git a/site/src/components/home/Built/DataViz.astro b/site/src/components/home/Built/DataViz.astro index 15af9c88..39886918 100644 --- a/site/src/components/home/Built/DataViz.astro +++ b/site/src/components/home/Built/DataViz.astro @@ -20,7 +20,11 @@ const seconds = [0, 5, 10, 15, 20]; > VJS 8

-
+
+

@@ -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%); } }