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