@@ -755,9 +755,7 @@ function CommunityGallery() {
755
755
} , [ ] ) ;
756
756
757
757
return (
758
- < div
759
- ref = { ref }
760
- className = "relative flex overflow-x-hidden overflow-y-visible w-auto" >
758
+ < div ref = { ref } className = "relative flex overflow-x-clip w-auto" >
761
759
< div
762
760
className = "w-full py-12 lg:py-20 whitespace-nowrap flex flex-row animate-marquee lg:animate-large-marquee"
763
761
style = { {
@@ -784,21 +782,26 @@ const CommunityImages = memo(function CommunityImages({isLazy}) {
784
782
< div
785
783
key = { i }
786
784
className = { cn (
787
- `group flex justify-center px-5 min-w-[50%] lg:min-w-[25%] rounded-2xl relative `
785
+ `group flex justify-center px-5 min-w-[50%] lg:min-w-[25%] rounded-2xl`
788
786
) } >
789
787
< div
790
788
className = { cn (
791
- 'h-auto relative rounded-2xl overflow-hidden before:-skew-x-12 before:absolute before:inset-0 before:-translate-x-full group-hover: before:animate-[shimmer_1s_forwards] before:bg-gradient-to-r before:from-transparent before:via-white/10 before:to-transparent transition-transform ease-in-out duration-300' ,
789
+ 'h-auto rounded-2xl before:rounded-2xl before:absolute before:pointer-events-none before: inset-0 before:transition-opacity before:-z-1 before:shadow-lg lg: before:shadow-2xl before:opacity-0 before:group-hover:opacity-100 transition-transform ease-in-out duration-300' ,
792
790
i % 2 === 0
793
- ? 'rotate-2 group-hover:rotate-[-1deg] group-hover:scale-110 group-hover:shadow-lg lg:group-hover:shadow-2xl '
794
- : 'group-hover:rotate-1 group-hover:scale-110 group-hover:shadow-lg lg:group-hover:shadow-2xl rotate-[-2deg]'
791
+ ? 'rotate-2 group-hover:rotate-[-1deg] group-hover:scale-110'
792
+ : 'group-hover:rotate-1 group-hover:scale-110 rotate-[-2deg]'
795
793
) } >
796
- < img
797
- loading = { isLazy ? 'lazy' : 'eager' }
798
- src = { src }
799
- alt = { alt }
800
- className = "aspect-[4/3] h-full w-full flex object-cover rounded-2xl bg-gray-10 dark:bg-gray-80"
801
- />
794
+ < div
795
+ className = { cn (
796
+ 'overflow-clip relative before:absolute before:inset-0 before:pointer-events-none before:-translate-x-full group-hover:before:animate-[shimmer_1s_forwards] before:bg-gradient-to-r before:from-transparent before:via-white/10 before:to-transparent transition-transform ease-in-out duration-300'
797
+ ) } >
798
+ < img
799
+ loading = { isLazy ? 'lazy' : 'eager' }
800
+ src = { src }
801
+ alt = { alt }
802
+ className = "aspect-[4/3] h-full w-full flex object-cover rounded-2xl bg-gray-10 dark:bg-gray-80"
803
+ />
804
+ </ div >
802
805
</ div >
803
806
</ div >
804
807
) ) }
0 commit comments