Skip to content

Commit f337b8a

Browse files
committed
Merge branch 'main' of https://github.com/reactjs/reactjs.org into sync-b0922164
2 parents 498b695 + b092216 commit f337b8a

File tree

1 file changed

+16
-13
lines changed

1 file changed

+16
-13
lines changed

src/components/Layout/HomeContent.js

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -736,9 +736,7 @@ function CommunityGallery() {
736736
}, []);
737737

738738
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">
742740
<div
743741
className="w-full py-12 lg:py-20 whitespace-nowrap flex flex-row animate-marquee lg:animate-large-marquee"
744742
style={{
@@ -765,21 +763,26 @@ const CommunityImages = memo(function CommunityImages({isLazy}) {
765763
<div
766764
key={i}
767765
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`
769767
)}>
770768
<div
771769
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',
773771
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]'
776774
)}>
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>
783786
</div>
784787
</div>
785788
))}

0 commit comments

Comments
 (0)