Skip to content

Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.

💄 Make landing stats digits roll straight vertically (#2979)

Luke Vellaff57cd1673d3
diff --git a/apps/landing/src/components/home/animated-number.tsx b/apps/landing/src/components/home/animated-number.tsx
index f7f4191d0..f8b6ca827 100644
--- a/apps/landing/src/components/home/animated-number.tsx
+++ b/apps/landing/src/components/home/animated-number.tsx
@@ -91,6 +91,9 @@ function AnimatedNumber({
value={shown}
locales={locale}
animated={animated}
+ // Layout snaps instantly so digits spin straight vertically in
+ // place instead of sliding sideways while the width grows.
+ transformTiming={{ duration: 0 }}
spinTiming={{
duration: DURATION_MS,
easing: "cubic-bezier(0.16, 1, 0.3, 1)",