File tree Expand file tree Collapse file tree 1 file changed +15
-10
lines changed
Expand file tree Collapse file tree 1 file changed +15
-10
lines changed Original file line number Diff line number Diff line change @@ -784,21 +784,26 @@ const CommunityImages = memo(function CommunityImages({isLazy}) {
784784 < div
785785 key = { i }
786786 className = { cn (
787- `group flex justify-center px-5 min-w-[50%] lg:min-w-[25%] rounded-2xl relative `
787+ `group flex justify-center px-5 min-w-[50%] lg:min-w-[25%] rounded-2xl`
788788 ) } >
789789 < div
790790 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' ,
791+ 'h-auto rounded-2xl before:rounded-2xl before:absolute 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' ,
792792 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]'
793+ ? 'rotate-2 group-hover:rotate-[-1deg] hover:scale-110'
794+ : 'group-hover:rotate-1 group-hover:scale-110 rotate-[-2deg]'
795795 ) } >
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- />
796+ < div
797+ className = { cn (
798+ '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'
799+ ) } >
800+ < img
801+ loading = { isLazy ? 'lazy' : 'eager' }
802+ src = { src }
803+ alt = { alt }
804+ className = "aspect-[4/3] h-full w-full flex object-cover rounded-2xl bg-gray-10 dark:bg-gray-80"
805+ />
806+ </ div >
802807 </ div >
803808 </ div >
804809 ) ) }
You can’t perform that action at this time.
0 commit comments