diff --git a/client/src/components/netflix-grid.tsx b/client/src/components/netflix-grid.tsx index 64ddb75..1a9ceb6 100644 --- a/client/src/components/netflix-grid.tsx +++ b/client/src/components/netflix-grid.tsx @@ -218,11 +218,12 @@ function CategoryRow({ category, onVideoClick }: CategoryRowProps) { }, speedMode === 'fast' ? 10 : 16); // Slower intervals for smoother animation }; - // Initialize with first video on the left side + // Initialize with first video on the left side useEffect(() => { if (category.videos.length > 0) { - // Start at beginning to show video 1 on the left - setTranslateX(0); + // Start in middle copy (segunda copia) so loop works in both directions + const totalWidth = category.videos.length * videoWidth; + setTranslateX(-totalWidth); } }, [category.videos.length]);