@@ -736,9 +736,7 @@ function CommunityGallery() {
736
736
} , [ ] ) ;
737
737
738
738
return (
739
- < div
740
- ref = { ref }
741
- className = "relative flex overflow-x-hidden overflow-y-visible w-auto" >
739
+ < div ref = { ref } className = "relative flex overflow-x-clip w-auto" >
742
740
< div
743
741
className = "w-full py-12 lg:py-20 whitespace-nowrap flex flex-row animate-marquee lg:animate-large-marquee"
744
742
style = { {
@@ -765,21 +763,26 @@ const CommunityImages = memo(function CommunityImages({isLazy}) {
765
763
< div
766
764
key = { i }
767
765
className = { cn (
768
- `group flex justify-center px-5 min-w-[50%] lg:min-w-[25%] rounded-2xl relative `
766
+ `group flex justify-center px-5 min-w-[50%] lg:min-w-[25%] rounded-2xl`
769
767
) } >
770
768
< div
771
769
className = { cn (
772
- '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' ,
770
+ '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' ,
773
771
i % 2 === 0
774
- ? 'rotate-2 group-hover:rotate-[-1deg] group-hover:scale-110 group-hover:shadow-lg lg:group-hover:shadow-2xl '
775
- : 'group-hover:rotate-1 group-hover:scale-110 group-hover:shadow-lg lg:group-hover:shadow-2xl rotate-[-2deg]'
772
+ ? 'rotate-2 group-hover:rotate-[-1deg] group-hover:scale-110'
773
+ : 'group-hover:rotate-1 group-hover:scale-110 rotate-[-2deg]'
776
774
) } >
777
- < img
778
- loading = { isLazy ? 'lazy' : 'eager' }
779
- src = { src }
780
- alt = { alt }
781
- className = "aspect-[4/3] h-full w-full flex object-cover rounded-2xl bg-gray-10 dark:bg-gray-80"
782
- />
775
+ < div
776
+ className = { cn (
777
+ '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'
778
+ ) } >
779
+ < img
780
+ loading = { isLazy ? 'lazy' : 'eager' }
781
+ src = { src }
782
+ alt = { alt }
783
+ className = "aspect-[4/3] h-full w-full flex object-cover rounded-2xl bg-gray-10 dark:bg-gray-80"
784
+ />
785
+ </ div >
783
786
</ div >
784
787
</ div >
785
788
) ) }
0 commit comments