diff --git a/components/campaigns/AnnouncementHero.tsx b/components/campaigns/AnnouncementHero.tsx index bee864e495c6..80931437f0f9 100644 --- a/components/campaigns/AnnouncementHero.tsx +++ b/components/campaigns/AnnouncementHero.tsx @@ -62,21 +62,28 @@ export default function AnnouncementHero({ className = '', small = false }: IAnn )}
- {visibleBanners.map((banner, index) => ( - - ))} + {visibleBanners.map((banner, index) => { + // Only render active banner and immediate neighbors + const isVisible = Math.abs(index - (activeIndex % numberOfVisibleBanners)) <= 1; + + if (!isVisible) return null; + + return ( + + ); + })}
{visibleBanners.map((banner, index) => (