@@ -797,9 +797,7 @@ function CommunityGallery() {
797
797
} , [ ] ) ;
798
798
799
799
return (
800
- < div
801
- ref = { ref }
802
- className = "relative flex overflow-x-hidden overflow-y-visible w-auto" >
800
+ < div ref = { ref } className = "relative flex overflow-x-clip w-auto" >
803
801
< div
804
802
className = "w-full py-12 lg:py-20 whitespace-nowrap flex flex-row animate-marquee lg:animate-large-marquee"
805
803
style = { {
@@ -826,21 +824,26 @@ const CommunityImages = memo(function CommunityImages({isLazy}) {
826
824
< div
827
825
key = { i }
828
826
className = { cn (
829
- `group flex justify-center px-5 min-w-[50%] lg:min-w-[25%] rounded-2xl relative `
827
+ `group flex justify-center px-5 min-w-[50%] lg:min-w-[25%] rounded-2xl`
830
828
) } >
831
829
< div
832
830
className = { cn (
833
- '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' ,
831
+ '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' ,
834
832
i % 2 === 0
835
- ? 'rotate-2 group-hover:rotate-[-1deg] group-hover:scale-110 group-hover:shadow-lg lg:group-hover:shadow-2xl '
836
- : 'group-hover:rotate-1 group-hover:scale-110 group-hover:shadow-lg lg:group-hover:shadow-2xl rotate-[-2deg]'
833
+ ? 'rotate-2 group-hover:rotate-[-1deg] group-hover:scale-110'
834
+ : 'group-hover:rotate-1 group-hover:scale-110 rotate-[-2deg]'
837
835
) } >
838
- < img
839
- loading = { isLazy ? 'lazy' : 'eager' }
840
- src = { src }
841
- alt = { alt }
842
- className = "aspect-[4/3] h-full w-full flex object-cover rounded-2xl bg-gray-10 dark:bg-gray-80"
843
- />
836
+ < div
837
+ className = { cn (
838
+ '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'
839
+ ) } >
840
+ < img
841
+ loading = { isLazy ? 'lazy' : 'eager' }
842
+ src = { src }
843
+ alt = { alt }
844
+ className = "aspect-[4/3] h-full w-full flex object-cover rounded-2xl bg-gray-10 dark:bg-gray-80"
845
+ />
846
+ </ div >
844
847
</ div >
845
848
</ div >
846
849
) ) }
0 commit comments