mirror of
https://github.com/vercel/commerce.git
synced 2025-05-16 06:26:58 +00:00
Adds back carousel animation
This commit is contained in:
parent
1381783490
commit
e21297ceb9
@ -9,7 +9,8 @@ export async function Carousel() {
|
|||||||
if (!products?.length) return null;
|
if (!products?.length) return null;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="flex w-full gap-4 overflow-x-auto pb-6 pt-1">
|
<div className=" w-full overflow-x-auto pb-6 pt-1">
|
||||||
|
<div className="flex animate-carousel gap-4">
|
||||||
{[...products, ...products].map((product, i) => (
|
{[...products, ...products].map((product, i) => (
|
||||||
<Link
|
<Link
|
||||||
key={`${product.handle}${i}`}
|
key={`${product.handle}${i}`}
|
||||||
@ -31,5 +32,6 @@ export async function Carousel() {
|
|||||||
</Link>
|
</Link>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user