Skip to content

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

⚡️ Use transform instead of height for animation

Luke Vella07835f5f2e4f
diff --git a/apps/landing/src/app/[locale]/(main)/open-source-banner.tsx b/apps/landing/src/app/[locale]/(main)/open-source-banner.tsx
index 1636677d0..05485ded5 100644
--- a/apps/landing/src/app/[locale]/(main)/open-source-banner.tsx
+++ b/apps/landing/src/app/[locale]/(main)/open-source-banner.tsx
@@ -13,10 +13,10 @@ export function OpenSourceBanner() {
return (
<div
className={cn(
- "bg-gray-800 transition-all overflow-hidden hover:underline fixed top-0 w-full flex items-center h-10 text-sm rounded-none text-gray-100 justify-center gap-4",
+ "bg-gray-800 z-50 transition-transform h-11 overflow-hidden hover:underline fixed top-0 w-full flex items-center text-sm rounded-none text-gray-100 justify-center gap-4",
{
- "h-11": y <= 0,
- "h-0": y > 16,
+ "translate-y-0": y <= 0,
+ "-translate-y-full": y > 20,
},
)}
>