@@ -760,9 +760,7 @@ function CommunityGallery() {
760
760
} , [ ] ) ;
761
761
762
762
return (
763
- < div
764
- ref = { ref }
765
- className = "relative flex overflow-x-hidden overflow-y-visible w-auto" >
763
+ < div ref = { ref } className = "relative flex overflow-x-clip w-auto" >
766
764
< div
767
765
className = "w-full py-12 lg:py-20 whitespace-nowrap flex flex-row animate-marquee lg:animate-large-marquee"
768
766
style = { {
@@ -789,21 +787,26 @@ const CommunityImages = memo(function CommunityImages({isLazy}) {
789
787
< div
790
788
key = { i }
791
789
className = { cn (
792
- `group flex justify-center px-5 min-w-[50%] lg:min-w-[25%] rounded-2xl relative `
790
+ `group flex justify-center px-5 min-w-[50%] lg:min-w-[25%] rounded-2xl`
793
791
) } >
794
792
< div
795
793
className = { cn (
796
- '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-all ease-in-out duration-300' ,
794
+ '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' ,
797
795
i % 2 === 0
798
- ? 'rotate-2 group-hover:rotate-[-1deg] group-hover:scale-110 group-hover:shadow-lg lg:group-hover:shadow-2xl '
799
- : 'group-hover:rotate-1 group-hover:scale-110 group-hover:shadow-lg lg:group-hover:shadow-2xl rotate-[-2deg]'
796
+ ? 'rotate-2 group-hover:rotate-[-1deg] group-hover:scale-110'
797
+ : 'group-hover:rotate-1 group-hover:scale-110 rotate-[-2deg]'
800
798
) } >
801
- < img
802
- loading = { isLazy ? 'lazy' : 'eager' }
803
- src = { src }
804
- alt = { alt }
805
- className = "aspect-[4/3] h-full w-full flex object-cover rounded-2xl bg-gray-10 dark:bg-gray-80"
806
- />
799
+ < div
800
+ className = { cn (
801
+ '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'
802
+ ) } >
803
+ < img
804
+ loading = { isLazy ? 'lazy' : 'eager' }
805
+ src = { src }
806
+ alt = { alt }
807
+ className = "aspect-[4/3] h-full w-full flex object-cover rounded-2xl bg-gray-10 dark:bg-gray-80"
808
+ />
809
+ </ div >
807
810
</ div >
808
811
</ div >
809
812
) ) }
0 commit comments