From cf9de359bd22fd596687198190c084389994beb9 Mon Sep 17 00:00:00 2001 From: sebastjanartic <45803536-sebastjanartic@users.noreply.replit.com> Date: Fri, 29 Aug 2025 10:45:52 +0000 Subject: [PATCH] Improve video card hover effect for smoother transitions Adjusted the `VideoCard` component by removing the `-translate-y-4` class from the hover effect and adding `transformStyle: 'preserve-3d'` to the style attribute. This aims to fix an issue where the card might jump or not scale correctly during hover interactions, providing a more visually consistent experience. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 2eb1084e-b728-4449-9231-f1665924c8d5 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/8cc42625-c1f5-4e43-99bd-77f2c4dedee2/2eb1084e-b728-4449-9231-f1665924c8d5/P3O2FU7 --- client/src/components/video-card.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/src/components/video-card.tsx b/client/src/components/video-card.tsx index 5aba77a..9b99d26 100644 --- a/client/src/components/video-card.tsx +++ b/client/src/components/video-card.tsx @@ -159,7 +159,8 @@ export default function VideoCard({ video, onClick, className = "" }: VideoCardP return (
setIsHovered(true)} onMouseLeave={() => setIsHovered(false)} >