Improve video hover effect for better user interaction
Update .individual-video-hover class in simple-carousel.tsx and index.css to increase z-index, add a scale transform, and transition for an enhanced hover effect. 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/yexZbDm
This commit is contained in:
parent
c69edd23cd
commit
cc0ec8a2c1
@ -135,7 +135,7 @@ export default function SimpleCarousel({ category, onVideoClick }: SimpleCarouse
|
|||||||
{/* Create many copies for infinite feel */}
|
{/* Create many copies for infinite feel */}
|
||||||
{Array.from({ length: 20 }).map((_, copyIndex) =>
|
{Array.from({ length: 20 }).map((_, copyIndex) =>
|
||||||
category.videos.map((video, videoIndex) => (
|
category.videos.map((video, videoIndex) => (
|
||||||
<div key={`${video.id}-${copyIndex}-${videoIndex}`} className="flex-shrink-0 w-28 md:w-52 relative individual-video-hover hover:z-50">
|
<div key={`${video.id}-${copyIndex}-${videoIndex}`} className="flex-shrink-0 w-28 md:w-52 relative individual-video-hover hover:z-[9999]">
|
||||||
{/* Top 10 Number overlay for first category */}
|
{/* Top 10 Number overlay for first category */}
|
||||||
{category.title.includes("Top 10") && (
|
{category.title.includes("Top 10") && (
|
||||||
<div className="absolute top-1 left-1 z-30 text-white font-black text-3xl md:text-5xl drop-shadow-2xl pointer-events-none individual-video-hover:opacity-0 transition-opacity duration-300"
|
<div className="absolute top-1 left-1 z-30 text-white font-black text-3xl md:text-5xl drop-shadow-2xl pointer-events-none individual-video-hover:opacity-0 transition-opacity duration-300"
|
||||||
|
|||||||
@ -387,6 +387,14 @@ input[data-testid*="search"]::placeholder {
|
|||||||
opacity: 0;
|
opacity: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Force hover video above everything */
|
||||||
|
.individual-video-hover:hover {
|
||||||
|
z-index: 9999 !important;
|
||||||
|
position: relative !important;
|
||||||
|
transform: scale(1.05) !important;
|
||||||
|
transition: all 0.3s ease !important;
|
||||||
|
}
|
||||||
|
|
||||||
/* Hide picture-in-picture button on all video elements */
|
/* Hide picture-in-picture button on all video elements */
|
||||||
video::-webkit-media-controls-picture-in-picture-button {
|
video::-webkit-media-controls-picture-in-picture-button {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user